Localized date format causes error when saving a workflow
-
Hi guys,
Using the current free version of the plugin, I can’t save a workflow without getting a “Call to a member function format() on boolean” error.
This is apparently related to the
format_date_for_db
function and particularly the$date = DateTime::createFromFormat(get_option( 'date_format' ), $ddate );
line (createFromFormat returning FALSE, indicating failure). (oasis-workflow/includes/workflow-base.php on line 278).My date format is set to F j, Y and my locale is sv_SE so the month names should be capitalized. But your default date strings for the workflow due dates are in lowercase which causes this error (“februari” vs “Februari”).
If I simply use the date picker to pick a date, it inserts the correct format (capitalized month name) into the due date box and I can save.
- The topic ‘Localized date format causes error when saving a workflow’ is closed to new replies.