|
|
|
@ -261,6 +261,9 @@ class StorageManager:
|
|
|
|
if timestamp_raw:
|
|
|
|
if timestamp_raw:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
timestamp_dt = datetime.fromisoformat(timestamp_raw)
|
|
|
|
timestamp_dt = datetime.fromisoformat(timestamp_raw)
|
|
|
|
|
|
|
|
# 去掉时区信息,统一使用 naive datetime
|
|
|
|
|
|
|
|
if timestamp_dt.tzinfo is not None:
|
|
|
|
|
|
|
|
timestamp_dt = timestamp_dt.replace(tzinfo=None)
|
|
|
|
if newest is None or timestamp_dt > newest:
|
|
|
|
if newest is None or timestamp_dt > newest:
|
|
|
|
newest = timestamp_dt
|
|
|
|
newest = timestamp_dt
|
|
|
|
except Exception:
|
|
|
|
except Exception:
|
|
|
|
|