jQRangeSlider icon indicating copy to clipboard operation
jQRangeSlider copied to clipboard

ignore client timezone

Open adrianricardo opened this issue 9 years ago • 1 comments

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'.

adrianricardo avatar Feb 03 '16 20:02 adrianricardo

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 https://github.com/ghusse/jQRangeSlider/issues/212.

ghusse avatar Feb 19 '16 10:02 ghusse