Currently, the revisioning scheduler forces you to use dd-mm-yyyy format for the publish date. This can be problematic if you are trying to use a datepicker plugin, or simply trying to make it more user friendly for places like the United States where another format like mm/dd/yyyy is more common. This patch allows you to set the date format from the settings page. I have it marked as "needs work" as my current solution relies on the DateTime class and will only work on PHP 5.3 or later, which may be a problem for a general release. If someone knows of a workaround they are willing to contribute, that would be great!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RdeBoer’s picture

Thanks for this patch!
This may solve #1991332: Date format not using Revisioning Scheduler Settings.
Rik

perfectcu.be’s picture

I was doing some poking around, and found out my implementation on this wasn't quite complete. Here is a new patch that is up to date.

RdeBoer’s picture

Version: 6.x-3.x-dev » 7.x-1.x-dev

Patch fails:
.patch:30: space before tab in indent.
.... etc...
.patch:35: trailing whitespace.

Can we include the patch from #2006230: Make validation of past dates a configurable option