You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to used DateFormatter.parseDate() from https://github.com/kartik-v/php-date-formatter around line 1180 in jquery.datetimepicker.js
a validation is not reliable for the following cases:
date is invalid, but time is partially valid, e.g:
'2016/04/33 10:13' -> '1899/12/31 10:13'
'2016/04/33 1' -> '1899/12/31 1:00'
'2016/04/33 99' -> '1899/12/31 00:00'
this is because parseDate() ignores invalid date part if time part is present.
date is valid, but time is invalid, e.g:
'2016/04/05 99:88' -> '2016/04/05 00:00'
this is because parseDate() doesn't validate time part at all.
Tested with php-date-formatter 1.3.3.
The text was updated successfully, but these errors were encountered:
Due to used DateFormatter.parseDate() from https://github.com/kartik-v/php-date-formatter around line 1180 in jquery.datetimepicker.js
a validation is not reliable for the following cases:
'2016/04/33 10:13' -> '1899/12/31 10:13'
'2016/04/33 1' -> '1899/12/31 1:00'
'2016/04/33 99' -> '1899/12/31 00:00'
this is because parseDate() ignores invalid date part if time part is present.
'2016/04/05 99:88' -> '2016/04/05 00:00'
this is because parseDate() doesn't validate time part at all.
Tested with php-date-formatter 1.3.3.
The text was updated successfully, but these errors were encountered: