Skip to content
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

Time format incorrect result #17

Closed
senthoven opened this issue Jan 17, 2017 · 0 comments
Closed

Time format incorrect result #17

senthoven opened this issue Jan 17, 2017 · 0 comments

Comments

@senthoven
Copy link

I stumbled across a case where format returns the wrong time:

var format = d3.time.format("%Y-%m-%d %H:%I:%S");
console.log(format(new Date("2016-12-08T08:10:58.844Z")));
console.log(format(new Date("2016-12-08T08:11:00.751Z")));

Returns

2016-12-08 10:10:58
2016-12-08 10:10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant