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

There's no way to return a date to UTC #86

Closed
peterjwest opened this issue May 27, 2014 · 4 comments
Closed

There's no way to return a date to UTC #86

peterjwest opened this issue May 27, 2014 · 4 comments
Milestone

Comments

@peterjwest
Copy link

Looking at the source code, I can't see any way to remove the timezone once applied. I'd like to be able to convert a moment back to UTC. Moment's built in .utc() doesn't seem to be compatible with moment-timezone.

@peterjwest
Copy link
Author

Okay, sorry so there's a UTC timezone I can use. Shouldn't a new moment with moment-timezone use a default timezone?

@drewish
Copy link

drewish commented Jun 5, 2014

I was trying to use UTC and Etc/UTC and had no luck either.

@drewish
Copy link

drewish commented Jun 5, 2014

Oh I guess this might be a duplicate of #58, or perhaps I'm misunderstanding @peterjwest's issue.

@timrwood timrwood added this to the 0.1.0 milestone Jun 19, 2014
@timrwood
Copy link
Member

Just added a commit to fix this. Now, calls to moment().utc() will clear the associated timezone.

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

3 participants