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
I don't know what could be the best solution. As of right now, I implemented the workaround to replace / with - and strtotime is happy. My first thought was to override dateToTime to be compatible with the current (my!) locale, but that's certainly not a solution valid for everyone.
The text was updated successfully, but these errors were encountered:
Prerequisites
master
branch of yii2-date-range.Steps to reproduce the issue
Given this widget config:
and this model:
certain dates are converted to
null
. This because with the Italian locale,strtotime
fails.Expected behavior and actual behavior
I don't know what could be the best solution. As of right now, I implemented the workaround to replace
/
with-
andstrtotime
is happy. My first thought was to overridedateToTime
to be compatible with the current (my!) locale, but that's certainly not a solution valid for everyone.The text was updated successfully, but these errors were encountered: