8000 utc(Number) not working · Issue #323 · moment/moment · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

utc(Number) not working #323

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

Closed
tonyka opened this issue May 31, 2012 · 1 comment
Closed

utc(Number) not working #323

tonyka opened this issue May 31, 2012 · 1 comment

Comments

@tonyka
Copy link
tonyka commented May 31, 2012

Example

moment.utc(1338499506000);

Result

{ _d: Invalid Date, _isUTC: true }

timrwood added a commit that referenced this issue May 31, 2012
@timrwood
Copy link
Member

Ah yes, so it is. Try using moment(1338499506000).utc() instead. The fix will go out in the 1.7.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0