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

Timezone support #4

Closed
4ver opened this issue Sep 11, 2018 · 4 comments
Closed

Timezone support #4

4ver opened this issue Sep 11, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@4ver
Copy link

4ver commented Sep 11, 2018

You might mention that if you need to format dates for a timezone that's not that of the host then you can't use date-fns/native dates right now.

@ttma1046
Copy link

Isn't 'timezone' in the context of this repo ? "You dont need momentjs" not "You dont need momentjs and moment-timezone".

@andrew-yangy
Copy link
Member

Fortunately, moment-timezone did a really great job of supporting timezone on javascript. Unfortunately, it seems the only mature one in the market right now, and it requires moment.js. We will keep eyes on the timezone libs, and will update the docs once they are decent enough.

@4ver
Copy link
Author

4ver commented Sep 12, 2018

I wan't talking about moment-timezone. Moments utcOffset function has no equivalent in either Date/date-fns https://momentjs.com/docs/#/manipulating/utc-offset/

Is about the only exception I think (and a pretty big one if you need it) so it might be worth noting it in this repo.

@stevemao stevemao added the enhancement New feature or request label Sep 12, 2018
@stevemao stevemao reopened this Sep 12, 2018
@andrew-yangy
Copy link
Member

mentioned in new README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants