471,873 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

Timezone milliseconds

101 100+
Hi,

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.

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

How to know about that in JavaScript
May 6 '09 #3
acoder
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 zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.