views:

25

answers:

0

I need to a date to the user's timezone.

I know the hours and minutes offset of the timezone. So, I have two variables hoursOffset and minutesOffset. I need to figure out the timezone from that, if daylight savings exists right now, and then get the correct local date with javascript.

I'm not sure how to check if daylight savings exists just by using hoursOffset and minutesOffset.

Any ideas how to do that?