api hotfix: use now() instead of utcnow

This commit is contained in:
Jörn-Michael Miehe 2023-10-27 00:22:01 +02:00
parent 3d33dd06a7
commit 4e63dccbf0
2 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,7 @@ class CalDAV:
_logger.info(f"downloading {calendar_name!r} ...")
dt_start = datetime.combine(
datetime.utcnow().date(),
datetime.now().date(),
datetime.min.time(),
)
dt_end = dt_start + timedelta(days=cfg.calendar.future_days)

View file

@ -31,8 +31,8 @@ class CalEvent(BaseModel):
summary: StrippedStr = ""
description: StrippedStr = ""
dtstart: datetime = datetime.utcnow()
dtend: datetime = datetime.utcnow()
dtstart: datetime = datetime.now()
dtend: datetime = datetime.now()
def __lt__(self, other: Self) -> bool:
"""