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
As seen in the screenshot, The format '%d / %m / %y'(the one with slash as separator) should have been picked up, but instead it pickup '%d . %m . %y'(with dot separator) picked up because of '.' character which in regex means anything.
this ends up in invalid date.
The text was updated successfully, but these errors were encountered:
abhi-patel
added a commit
to abhi-patel/delocalize
that referenced
this issue
Jul 27, 2017
The method apply regex at https://github.com/clemens/delocalize/blob/master/lib/delocalize/parsers/date_time.rb#L84 does not escape regex sensitive characters. This causes the issue where the original format contain regex sensitive characters such as '.' and hence invalid values gets parsed with invalid formats.
As seen in the screenshot, The format '%d / %m / %y'(the one with slash as separator) should have been picked up, but instead it pickup '%d . %m . %y'(with dot separator) picked up because of '.' character which in regex means anything.
this ends up in invalid date.
The text was updated successfully, but these errors were encountered: