Title: [commits] (jeffrey) [11147] - Fix for bug 6213, allDay event created on wrong day after switching timezones, r=grant
Revision
11147
Author
jeffrey
Date
2006-07-13 14:26:57 -0700 (Thu, 13 Jul 2006)

Log Message

- Fix for bug 6213, allDay event created on wrong day after switching timezones, r=grant

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/framework/blocks/calendar/AllDayCanvas.py (11146 => 11147)

--- trunk/chandler/parcels/osaf/framework/blocks/calendar/AllDayCanvas.py	2006-07-13 21:15:10 UTC (rev 11146)
+++ trunk/chandler/parcels/osaf/framework/blocks/calendar/AllDayCanvas.py	2006-07-13 21:26:57 UTC (rev 11147)
@@ -479,6 +479,7 @@
         evaluate datetime's position in the week: 0-6 (sun-sat)
         """
         cal = GregorianCalendar()
+        cal.setTimeZone(datetime.tzinfo.timezone)
         cal.setTime(datetime)
         
         return (cal.get(cal.DAY_OF_WEEK) - cal.getFirstDayOfWeek())




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to