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

ignore client timezone #212

Open
adrianricardo opened this issue Feb 3, 2016 · 1 comment
Open

ignore client timezone #212

adrianricardo opened this issue Feb 3, 2016 · 1 comment

Comments

@adrianricardo
Copy link

The slider seems to take into account the client timezone and automatically adjust the bound times accordingly, is there a way to ignore the client timezone?

I'm in the central time zone. I pass in a minimum bound of 3am and as expected, the minimum bound on the slider is 3am. The problem arises when I change the system time on my OS to be in the New York timezone. I pass in the same moment but the mimimim bound is now 4am.

The moment I am passing in is the same in both scenarios. I console.log'd minBound.format('LT') both times and got '3am'.

@ghusse
Copy link
Owner

ghusse commented Feb 19, 2016

Hello,

I don't know, you can try to create dates in UTC (take a look at the docs
about the Date object in JS)

On Wed, Feb 3, 2016 at 9:56 PM, Adrian Tavares [email protected]
wrote:

the slider seems to be take into account the client timezone and adjust
the bound times accordingly, is there a way to ignore the client timezone?


Reply to this email directly or view it on GitHub
#212.

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

2 participants