Calculate timezone offset from eight o'clock instead of 0, fixes offset problem for IETF-83
- Legacy-Id: 4170
This commit is contained in:
parent
d22f741a71
commit
aaccd955c7
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue