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

after a call to local(), a call to clone() and startOf('day') will change the timezone #340

Open
mblandfo opened this issue May 5, 2016 · 1 comment

Comments

@mblandfo
Copy link

mblandfo commented May 5, 2016

https://jsfiddle.net/tjzo124x/4/

  1. set a zone with moment.tz.
  2. call local()
  3. call either startOf('day') or clone()
  4. the moment is no longer in local time - it has reverted to the timezone set in step 1
@mattjohnsonpint
Copy link
Contributor

I believe this will be addressed if moment/moment-rfcs#1 is adopted.

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

No branches or pull requests

3 participants