Update public source
This commit is contained in:
+3
-3
@@ -26,7 +26,7 @@ from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
from zoneinfo import ZoneInfo
|
||||
|
||||
from .config import TIMEZONE
|
||||
from .config import get_timezone
|
||||
|
||||
|
||||
# ============================================================
|
||||
@@ -141,7 +141,7 @@ def format_datetime(
|
||||
if dt is None:
|
||||
return safe(text)
|
||||
|
||||
display_timezone = ZoneInfo(TIMEZONE)
|
||||
display_timezone = ZoneInfo(get_timezone())
|
||||
|
||||
return dt.astimezone(
|
||||
display_timezone
|
||||
@@ -403,7 +403,7 @@ def modified(path):
|
||||
if not path.exists():
|
||||
return "-"
|
||||
|
||||
display_timezone = ZoneInfo(TIMEZONE)
|
||||
display_timezone = ZoneInfo(get_timezone())
|
||||
|
||||
return datetime.fromtimestamp(
|
||||
path.stat().st_mtime,
|
||||
|
||||
Reference in New Issue
Block a user