On Thu, Sep 4, 2008 at 5:57 AM, jamesrobieskinner <[EMAIL PROTECTED]> wrote: > > I'm having trouble with a Daylights Saving time issue and I can't > figure it out. I am in the Atlantic Time zone. If I enter events at > a date with the daylight savings zone then every thing is fine. > However if I enter a date that is not in Daylight savings time then > the google entry is off by 1 hour. Somehow I guess I need to determine > if the date that I am sending is in day light savings or not and then > adjust the offset. Is there a PHP function that will determine this? > However even stranger when I submit an event during that time the > returned even time info is not the same as what I submitted. For > example when I submit 2008-11-04T20:00:00.000-03:00 then when I read > it back I get 2008-11-04T19:00:00.000-04:00. Technically the same > time but why the change, during daylight savings time the entry comes > back exactly the same.
Take a look at http://www.php.net/localtime. the last element in the array returned by localtime() will indicate if the current timezone (as set by date_default_timezone_set()) is currently observing DST. -- Trevor Johns --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
