b80ca5e1 | 26-Jan-2018 |
Michael Große <grosse@cosmocode.de> |
fix: make html5 datetime picker actually work
The datetime picker expects and produces dates / time pairs separated by the "T" character, not a space. Further, it does not handle seconds at all.
Th
fix: make html5 datetime picker actually work
The datetime picker expects and produces dates / time pairs separated by the "T" character, not a space. Further, it does not handle seconds at all.
Therefore, we have to provide the timestamp in the input field separated by a "T" and for consistency drop seconds altogether. Hence, it becomes necessary to replace the "T" by a space again before providing it to jQuery date picker fallback.
Further, we have to actually parse the "T" when validating the timestamps we receive from the user.
show more ...
|