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:
parent
48ae4d1d6e
commit
c84d09b4dc
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue