Calculate timezone offset from eight o'clock instead of 0, fixes offset problem for IETF-83

- Legacy-Id: 4170
This commit is contained in:
Ole Laursen 2012-03-22 18:51:34 +00:00
parent d22f741a71
commit aaccd955c7

View file

@ -44,7 +44,7 @@ class Meeting(models.Model):
return self.number
def time_zone_offset(self):
return pytz.timezone(self.time_zone).localize(datetime.datetime.combine(self.date, datetime.time(0, 0))).strftime("%z")
return pytz.timezone(self.time_zone).localize(datetime.datetime.combine(self.date, datetime.time(8, 0))).strftime("%z")
def get_meeting_date (self,offset):
return self.date + datetime.timedelta(days=offset)