Closed robert-h-at-cp closed 2 years ago
Do you have an example of where this can get the date wrong? This handling was recently changed in version 5.0.0 in #187.
Oh. Thx! Didn't notice that it has already been patched. Will try the update. Closing the issue for now.
The code here uses the function
strtotime()
to determine whether the string value is a date/time-ish string. However, thestrtotime()
function is super liberal and, for example, sometime mistake a timestamp string for a valid date/time string but would parse it into a wrong date/time object. See more details herePlz consider improving it by possibly using a different method.