I'm using the datemask dd/mm/yyyy
when I try to save it with a year, it shows the error. The problem is with the mask format, dd/mm/yyyy is javascript format, php should be d/m/Y
I fixed it by adding this line in the birthdays_birthday.inc file, at line 56:
$mask = str_replace(array('dd', 'mm', 'yy', 'yyyy'), array('d', 'm', 'Y', 'Y'), $mask);
before this line:
$result = date_parse_from_format($mask, $text);
Am I right in this? Shall I commit it?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | birthdays-1578784.patch | 622 bytes | afeijo |
Comments
Comment #1
afeijohere is the patch
Comment #3
Niklas Fiekas commentedHi. Can you check if this is still applicable for the latest dev version? (Lots of things might have changed.) If yes, a reroll would be awesome.
Comment #4
Niklas Fiekas commentedGoing through the issue queue, marking issues "maintainer needs more info" that I cannot reproduce.