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:
parent
23cc1ac341
commit
6199fc8204
@ -267,10 +267,10 @@ class MTimeWeek(MRangeDescriptor):
|
||||
|
||||
def first_stamp(self):
|
||||
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):
|
||||
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):
|
||||
if abs(step) == math.inf: return None
|
||||
|
Loading…
Reference in New Issue
Block a user