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

How to get timezone of client? #141

Open
PrajapatiDhara1510 opened this issue May 20, 2020 · 0 comments
Open

How to get timezone of client? #141

PrajapatiDhara1510 opened this issue May 20, 2020 · 0 comments

Comments

@PrajapatiDhara1510
Copy link

PrajapatiDhara1510 commented May 20, 2020

I want to get timezone of client. I have done following.

import Vue from 'vue'
import VueMoment from 'vue-moment'
import moment from 'moment-timezone'

Vue.use(VueMoment, { moment })

Then,

I trie to get timezone

console.log(this.$moment.tz.guess())

But it gives me an error

this.$moment.tz.guess is not a function

So How to get timezone of client?

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

No branches or pull requests

1 participant