moment-timezone icon indicating copy to clipboard operation
moment-timezone copied to clipboard

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

Open mblandfo opened this issue 9 years ago • 1 comments

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

mblandfo avatar May 05 '16 23:05 mblandfo

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

mattjohnsonpint avatar May 10 '16 07:05 mattjohnsonpint