I have run into the following issue: When enabling Revisioning Scheduler and setting the date format to m-d-Y H:i (as I live in the US), the module no longer works properly - when I go to publish a revision, the date looks right, but then it is processed as d-m-Y. See the example below for what happens when I try to publish content - it schedules it for the reverse date, instead of publishing it.
After double-checking my settings, I took a look through the module code. In revisioning_scheduler.module, line 35, I found what may be the issue:
$default_date_format = REVISIONING_SCHEDULER_DEFAULT_DATE_FORMAT; // variable_get('date_format_short', REVISIONING_SCHEDULER_DEFAULT_DATE_FORMAT);
I'm not sure why that line has been commented out, but the value for REVISIONING_SCHEDULER_DEFAULT_DATE_FORMAT, (line 11) is as follows:
define('REVISIONING_SCHEDULER_DEFAULT_DATE_FORMAT', 'd-m-Y H:i');
It seems as though this default value is overriding the user-entered value somewhere along the line.
Comments
Comment #1
rdeboerThanks aburke,
Haven't tried myself, but after putting that line back in, does everything work for you?
Rik
Comment #2
aburke626Sadly, no - I tried adding it back in, and playing around with the code a bit, but I couldn't quite get it. It does seem like that default date format variable is used a LOT, so I think it must be overriding the user's value somewhere.
Comment #2.0
aburke626removing embedded image
Comment #3
rdeboerRelated to #2006304: Make date format for scheduler configurable..
Comment #3.0
rdeboerfixing formatting