You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use timezone-aware fallback datetimes in production code
Fix 3 fromtimestamp(0) calls that produced naive, timezone-dependent
datetimes: photos.py, autodelete.py, base.py. All now pass tz=utc.
Fix 9 tests that hardcoded UTC timezone strings -- now compute expected
date paths and timezone offsets dynamically using the same logic as
production code (fromtimestamp + astimezone(get_localzone())).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
f"{datetime.datetime.fromtimestamp(1531371164630.0/1000.0, tz=pytz.utc).astimezone(get_localzone()):%Y/%m/%d}/IMG_7190_HEVC.MOV", # Live Photo for HEIC
0 commit comments