Date-fns: Parse() not working in IE/Firefox consistantly

Created on 21 Jun 2017  路  3Comments  路  Source: date-fns/date-fns

This is against v1.28.5

Noticed an issue when Parsing ISO style dates (but not valid ISO format) with a trailing Z

See the fiddle below (in IE11 or Firefox) it works in Chrome.
https://jsfiddle.net/p56cfcjd/4/

Parsess correctly in all browsers
dateFns.parse('2012-01');

Fails in IE11/Firefox but parses in Chrome
dateFns.parse('2012-01Z');

馃悰 Bug

Most helpful comment

Guys, this is a big problem and more than 5 months have passed since. Any news or workaround regarding this?

All 3 comments

Guys, this is a big problem and more than 5 months have passed since. Any news or workaround regarding this?

Unfortunately had to go back to using moment.js because of this bug :( I couldn't see an easy fix.

Fixed in master branch by #690

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mnquintana picture mnquintana  路  3Comments

pedrobrost picture pedrobrost  路  3Comments

GollyJer picture GollyJer  路  3Comments

ahtcx picture ahtcx  路  3Comments

melkishengue picture melkishengue  路  3Comments