Timezone milliseconds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buntyindia
    New Member
    • Jun 2007
    • 101

    Timezone milliseconds

    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
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Use getTimezoneOffs et().

    Comment

    • buntyindia
      New Member
      • Jun 2007
      • 101

      #3
      Originally posted by acoder
      I know about this function ..what about DST(day light saving )?

      How to know about that in JavaScript

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        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.

        Comment

        Working...