Currently, the format for dates entered in the date range fields is hardcoded to dd-mm-yy.
This is rather unflexible, people like to enter dates in different formats.
Fortunately, PHP has a nice little function called strtotime that accepts lots of ways to enter a date and converts them into a timestamp.
The attached patch makes daterange.module use strtotime instead of the current code that only accepts one hardcoded date format.
| Comment | File | Size | Author |
|---|---|---|---|
| dateformats.patch | 847 bytes | Frando |
Comments
Comment #1
douggreen commentedThanks! The patch has been committed.
Comment #2
(not verified) commented