Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Timezone recognition? #40

Open
jaketoolson opened this issue Feb 26, 2017 · 2 comments
Open

Timezone recognition? #40

jaketoolson opened this issue Feb 26, 2017 · 2 comments

Comments

@jaketoolson
Copy link

How can we enable timezones?

I use moment.js throughout and this plugin uses Date which doesn't recognize timezones. Suggestions?

@egoist
Copy link
Owner

egoist commented Feb 26, 2017

Yep, that's in the plan, also PRs are welcome. 😃

@egoist egoist mentioned this issue Mar 28, 2018
@ankurk91
Copy link

I think this feature is already there ->
We are storing datetime in UTC in database.
Then we are passing this datetime like -

<timeago :datetime="`2018-09-14T11:56:33+00:00`"></timeago>

The date-fns takes care of browser's current timezone and it will show accordingly.

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

3 participants