-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test failure in diff/1 hour from now #625
Comments
>>> var z = new Date(), zz = new Date(z);
undefined
>>> z.valueOf()
1360734223263
>>> zz.valueOf()
1360734223000 This is on FF 18.0.1 on Linux. When reading the MDN docs it seems they do not accept a date as an argument to a Date constructor. If you do |
Hi, the same here - I only ran tests from the Moment site. Environment:
Test:
|
This is fixed now, closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Firefox i get an error in the 45.5 test (diff/1 hour from now) :
45.5 1 hour from now = 360000 (3600000 == 3600211)
AssertionError: 1 hour from now = 360000
Date.prototype.toString = Tue Feb 12 2013 16:34:16 GMT+0100 (CET)
Date.prototype.toLocaleString = mar. 12 févr. 2013 16:34:16 CET
Date.prototype.getTimezoneOffset = -60
navigator.userAgent = Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0
I tried multiple times and got different values for the tert failure (3600211, 3600054, 3600661...).
However, when trying in the console, i could not reproduce:
or (not that it should make any difference, just to be sure)
The text was updated successfully, but these errors were encountered: