-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Different timestamp created by node.js and browser #9805
Comments
Could you please give an example of Node.js and browser output, to show what you think is wrong? |
Those are the same date, just displayed differently. The You can check this by using |
sorry about that,another stupid question. |
@EasonWang01 Don’t worry about it, I’m glad I could help! |
@addaleax: Hey there, i was wondering why the default format has been changed to an ISO string? Is there a reason? Just curious since it caused me some trouble that i wasn't expecting :P |
@Pustur #4318 was the PR that changed that, you can follow the links/discussion there. Tbh, I find it a bit weird that the ISO representation is used as the more “human-readable” format (which is what |
@EasonWang01 > sorry about that,another stupid question. Not stupid at all! I was just thinking the world was upside down when I saw it logged to different formats! I'm happy I found your question, it was really educational for me |
new Date() function create different timestamp for nodejs runtime, the browser created is correct,what might cause this problem?
The text was updated successfully, but these errors were encountered: