1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Why do these things happen

This commit is contained in:
Krateng 2021-01-24 01:44:04 +01:00
parent 23cc1ac341
commit 6199fc8204

View File

@ -267,10 +267,10 @@ class MTimeWeek(MRangeDescriptor):
def first_stamp(self): def first_stamp(self):
day = self.firstday day = self.firstday
return int(datetime.datetime.combine(day,datetime.time(tzinfo=datetime.timezone.utc)).timestamp()) return int(datetime.datetime.combine(day,datetime.time(tzinfo=TIMEZONE)).timestamp())
def last_stamp(self): def last_stamp(self):
day = self.lastday + datetime.timedelta(days=1) day = self.lastday + datetime.timedelta(days=1)
return int(datetime.datetime.combine(day,datetime.time(tzinfo=datetime.timezone.utc)).timestamp() - 1) return int(datetime.datetime.combine(day,datetime.time(tzinfo=TIMEZONE)).timestamp() - 1)
def next(self,step=1): def next(self,step=1):
if abs(step) == math.inf: return None if abs(step) == math.inf: return None