fix sync error introduced by 69d8cdd9ed
This commit is contained in:
parent
ac36fba90f
commit
6c6817563e
@ -1393,11 +1393,14 @@ where id = ?
|
|||||||
self._rolloverHour(),
|
self._rolloverHour(),
|
||||||
)
|
)
|
||||||
|
|
||||||
def _current_timezone_offset(self) -> Optional[int]:
|
def _current_timezone_offset(self) -> int:
|
||||||
if self.col.server:
|
if self.col.server:
|
||||||
return self.col.conf.get("localOffset", None)
|
return self.col.conf.get("localOffset", None)
|
||||||
else:
|
else:
|
||||||
return None
|
# note: while we could return None to sched_timing_today to have
|
||||||
|
# the backend calculate it, this function is also used to set
|
||||||
|
# localOffset, so it must not return None
|
||||||
|
return self.col.backend.local_minutes_west(intTime())
|
||||||
|
|
||||||
def _creation_timezone_offset(self) -> Optional[int]:
|
def _creation_timezone_offset(self) -> Optional[int]:
|
||||||
return self.col.conf.get("creationOffset", None)
|
return self.col.conf.get("creationOffset", None)
|
||||||
|
Loading…
Reference in New Issue
Block a user