api hotfix: use now()
instead of utcnow
This commit is contained in:
parent
3d33dd06a7
commit
4e63dccbf0
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ class CalDAV:
|
||||||
_logger.info(f"downloading {calendar_name!r} ...")
|
_logger.info(f"downloading {calendar_name!r} ...")
|
||||||
|
|
||||||
dt_start = datetime.combine(
|
dt_start = datetime.combine(
|
||||||
datetime.utcnow().date(),
|
datetime.now().date(),
|
||||||
datetime.min.time(),
|
datetime.min.time(),
|
||||||
)
|
)
|
||||||
dt_end = dt_start + timedelta(days=cfg.calendar.future_days)
|
dt_end = dt_start + timedelta(days=cfg.calendar.future_days)
|
||||||
|
|
|
@ -31,8 +31,8 @@ class CalEvent(BaseModel):
|
||||||
|
|
||||||
summary: StrippedStr = ""
|
summary: StrippedStr = ""
|
||||||
description: StrippedStr = ""
|
description: StrippedStr = ""
|
||||||
dtstart: datetime = datetime.utcnow()
|
dtstart: datetime = datetime.now()
|
||||||
dtend: datetime = datetime.utcnow()
|
dtend: datetime = datetime.now()
|
||||||
|
|
||||||
def __lt__(self, other: Self) -> bool:
|
def __lt__(self, other: Self) -> bool:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue