1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

workaround for windows

This commit is contained in:
Peter Bieringer 2025-07-20 18:00:39 +02:00
parent 48ae4d1d6e
commit c84d09b4dc

View file

@ -252,6 +252,9 @@ def user_groups_as_string():
def format_ut(unixtime: int) -> str:
if sys.platform == "win32":
# TODO check how to support this better
return str(unixtime)
if unixtime < DATETIME_MAX_UNIXTIME:
if sys.version_info < (3, 11):
dt = datetime.datetime.utcfromtimestamp(unixtime)