Getting DST information...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    Getting DST information...

    Hi all,

    I am working on web application.
    Client sends me it's time zone and UTC time.
    How can I figure out whether client is under DST or not?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Have a look in the PHP manual, especially commands timezone_identi fiers_list and timezone_abbrev iations_list . That information can help you along.

    Ronald

    Comment

    • ashitpro
      Recognized Expert Contributor
      • Aug 2007
      • 542

      #3
      Originally posted by ronverdonk
      Have a look in the PHP manual, especially commands timezone_identi fiers_list and timezone_abbrev iations_list . That information can help you along.

      Ronald

      Thanks for the reply...
      I got one more query...
      when I receive time from client...and daylight saving is currently active in it's country. I've to add/subtract specific offset...
      Precisely, I'd like to know whether client is under daylight saving or not..
      How can I get this information?
      Above functions merely tells me that DST is applicable for particular TZs.
      I want there current status...

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        You also get an offset (positive or negatve) in seconds from GMT. So you just add that to your calculation of your server's offset to GMT.

        Ronald

        Comment

        Working...