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
I think it is operating as expected, there's nothing there for it to use to determine whether the value is the number of milliseconds or a date. The closest thing to it is the the value happens to be a 4 digit number, but that would just be an assumption that it isn't a milliseconds value.
Did you have something in mind to address this? As I see it right now, I believe it is working as expected.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Context
What are you trying to achieve or the steps to reproduce ?
Which result you had ?
'1970-01-01T00:00:02.013Z'
What did you expect ?
Same output as
new Date('2013').toISOString()
:'2013-01-01T00:00:00.000Z'
As far as I can tell, it unexpectedly parses it as a timestamp value.
The text was updated successfully, but these errors were encountered: