469,330 Members | 1,292 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,330 developers. It's quick & easy.

Timezone milliseconds

101 100+

I have a time related issue.
Our application servers are hosted in US Central. So when cookie created by the application it contains US Central Time with DST.

When we use it in India time comparison logic fails as milliseconds are different. In US central logic of comparison current datetime milliseconds with cookie date time milliseconds work gr8.

Please tell me any way so that It work in India too.

May 6 '09 #1
3 1546
16,027 Expert Mod 8TB
Use getTimezoneOffset().
May 6 '09 #2
101 100+
I know about this function ..what about DST(day light saving )?

How to know about that in JavaScript
May 6 '09 #3
16,027 Expert Mod 8TB
Unfortunately, there's no DST function, but you can write your own or perform a quick search for one. One idea is to fix it for your locale (with the exact date/times), or if you want to make it generic, check the difference between, say January and June.
May 6 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Jason Kinkade | last post: by
7 posts views Thread by Jim Davis | last post: by
1 post views Thread by cnliou | last post: by
1 post views Thread by Raj Chudasama | last post: by
9 posts views Thread by Allen Davis | last post: by
13 posts views Thread by Bruno Wolff III | last post: by
2 posts views Thread by =?Utf-8?B?Sm9ubnk=?= | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.