Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Play nice with moment-timezone #29

Open
butterflyhug opened this issue Apr 23, 2017 · 0 comments
Open

Play nice with moment-timezone #29

butterflyhug opened this issue Apr 23, 2017 · 0 comments

Comments

@butterflyhug
Copy link
Contributor

Currently, moment-timezone doesn't work properly on frozen moments because its updateOffset implementation assumes that it is using the mutable API.

In moment/moment-rfcs#2, I proposed automatically thawing the moment before updateOffset and then re-freezing afterward (or copying the changed properties when updateOffset is called during the constructor). I'm not sure how a plugin would get access to do that, but I'll leave this issue open in case other folks have better ideas.

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

No branches or pull requests

1 participant