Re: Converting from local DST to UTC

2009-04-22 Thread Karen Tracey
On Wed, Apr 22, 2009 at 2:42 AM, vicky wrote: > > Hi, > > I am new in django. I need to update events from my website to > outlook, Google, yahoo calendars. I have implemented some code from > vObject which download ".ics" file which is OK for outlook. I don't > know how to update event in Google

Re: Converting from local DST to UTC

2009-04-22 Thread vicky
On Apr 15, 10:04 pm, Jamie wrote: > On Apr 14, 9:34 pm, Brian Neal wrote: > > > This is how I am doing it (I'm also integrating with Google Calendar): > > > tz = pytz.timezone(tz_name)  # create timezone > > local = tz.localize(d)  # make naive datetime localized > > zulu = local.astimezone(F

Re: Converting from local DST to UTC

2009-04-15 Thread Jamie
On Apr 14, 9:34 pm, Brian Neal wrote: > This is how I am doing it (I'm also integrating with Google Calendar): > tz = pytz.timezone(tz_name)  # create timezone > local = tz.localize(d)  # make naive datetime localized > zulu = local.astimezone(FixedOffset(0))  # convert to UTC > s = zulu.strftim

Re: Converting from local DST to UTC

2009-04-14 Thread Brian Neal
On Apr 14, 7:26 pm, Jamie wrote: > I am working on an app that will export a calendar event to Google > Calendar. Google Calendar requires that event datetimes be in UTC > format. I can make the conversion from local (America/New_York) to UTC > using pytz, but the time is off by an hour due to da