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
Hi,
I'm passing values to date constructor as below,
new Date("5/0/2014").
So Ideally it should return me below value
Wed Apr 30 2014 00:00:00 GMT+0530 (India Standard Time).
Where as it is returning Invalid date and the same code is working fine in IE
and FireFox.
My Chrome Version: 26.0.1410.64 m
Operating System : Windows XP
Please let me know where is the issue?
Original issue reported on code.google.com by [email protected] on 19 Apr 2013 at 9:03
The text was updated successfully, but these errors were encountered:
Confirmed. Also happens on Mac, obviously, but it's a Webkit issue it seems.
Interesting issue. Obviously 5/0/2014 is actually an invalid date so this is
sort of correct behavior and you may be left with it being an edge case as I'd
say that FF and IE are actually wrong here...
That said - ported the issue over to my fork and will be taking a look at it:
https://github.com/abritinthebay/datejs/issues/170
Confirmed - it's due to FF and IE being overly permissive. There is no reason
why they should allow 0 to go to the previous month.
I've marked it as wontfix in my fork and I doubt anyone will fix it here either.
Original issue reported on code.google.com by
[email protected]
on 19 Apr 2013 at 9:03The text was updated successfully, but these errors were encountered: