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!
Comment | File | Size | Author |
---|---|---|---|
#2 | revisioning-date_format-2006304-2.patch | 6.23 KB | perfectcu.be |
revisioning_date_formats.patch | 3.47 KB | perfectcu.be | |
Comments
Comment #1
RdeBoerThanks for this patch!
This may solve #1991332: Date format not using Revisioning Scheduler Settings.
Rik
Comment #2
perfectcu.be CreditAttribution: perfectcu.be commentedI 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.
Comment #3
RdeBoerPatch 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