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.

Screenshot

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

rdeboer’s picture

Thanks aburke,
Haven't tried myself, but after putting that line back in, does everything work for you?
Rik

aburke626’s picture

Sadly, 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.

aburke626’s picture

Issue summary: View changes

removing embedded image

rdeboer’s picture

rdeboer’s picture

Issue summary: View changes

fixing formatting