Fix time zones for now.

This commit is contained in:
Alexander 2015-08-22 02:25:00 -04:00
parent e53c2fac3d
commit fef0e0678e

View file

@ -47,7 +47,7 @@ class NewsManagerAI(DistributedObjectAI):
return self.activeHolidays return self.activeHolidays
def __checkHolidays(self, task=None): def __checkHolidays(self, task=None):
date = datetime.datetime.utcnow().replace(tzinfo=HolidayGlobals.TIME_ZONE) date = datetime.datetime.now(HolidayGlobals.TIME_ZONE)
for id in HolidayGlobals.Holidays: for id in HolidayGlobals.Holidays:
holiday = HolidayGlobals.Holidays[id] holiday = HolidayGlobals.Holidays[id]