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

TypeScript: moment and moment-timezone don't play well together #370

Closed
sfrooster opened this issue Aug 1, 2016 · 1 comment
Closed

Comments

@sfrooster
Copy link

Several things here:

  1. moment-timezone doesn't have TS support like moment does (I see this is a separate issue)
  2. current moment-timezone definitions don't include format()
  3. current moment-timezone definitions fail compilation (MomentTimeZoneFormat is not defined)
  4. momentTZ.tz() produces a Moment which is incompatible with moment() (Operator '<=' cannot be applied to types 'Moment' and 'Moment'.)
@gilmoreorless
Copy link
Member

I know this is an old issue, but for completeness:

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