|Subject:||Timezone problems with recurring events|
Hello, I've run into another issue with recurring events, but this one I can't quite figure out. If I have a recurring event which was created in my timezone and I try to get the next occurrence of it, it will give the correct time from my local timezone, but the timezone of the result will be in UTC For example, if I have a meeting at 11am EDT, it will say the next meeting is at 11am UTC. I'm starting off with a recurring Google Calendar event. I get the ICal part of it with the "recurrence" method, and that seems to have the right timezone. I next get the DateTime version with Data::ICal::Entry::Event's recurrence method, and that seems to be in the Floating timezone. Finally I use DateTime::Set's next method, and that seems to be in UTC. I've attached a small test program which shows the problem. The output of this program on my calendar is: Event Event Title ICal Recurrence Data::ICal::Entry::Event=HASH(0x8ed2830), starting 20070119T110000 timezone America/New_York DateTime Recurrence DateTime::Set=HASH(0x8ecf870) Min Date 2007-01-19T11:00:00 timezone DateTime::TimeZone::Floating=HASH(0x8ecf564) Max Date inf timezone DateTime::TimeZone::Floating=HASH(0x873e9d4) Next Start 2007-05-04T11:00:00 timezone DateTime::TimeZone::UTC=HASH(0x83acb34) Next End 2007-05-04T11:00:00 timezone DateTime::TimeZone::UTC=HASH(0x83acb34) Thanks for any help, ----Scott.
Message body not shown because it is not plain text.