- Revision
- 11148
- Author
- jeffrey
- Date
- 2006-07-13 14:28:20 -0700 (Thu, 13 Jul 2006)
Log Message
- [alpha3 branch] Fix for bug 6213, allDay event created on wrong day after switching
timezones, r=grant
timezones, r=grant
Modified Paths
Diff
Modified: branches/0.7alpha3/chandler/parcels/osaf/framework/blocks/calendar/AllDayCanvas.py (11147 => 11148)
--- branches/0.7alpha3/chandler/parcels/osaf/framework/blocks/calendar/AllDayCanvas.py 2006-07-13 21:26:57 UTC (rev 11147) +++ branches/0.7alpha3/chandler/parcels/osaf/framework/blocks/calendar/AllDayCanvas.py 2006-07-13 21:28:20 UTC (rev 11148) @@ -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
