修正时区差异+1

This commit is contained in:
zhangkun9038@dingtalk.com 2026-02-13 12:12:50 +08:00
parent dc200442cf
commit 8b69433eb7

View File

@ -526,8 +526,8 @@ class FreqaiPrimer(IStrategy):
latest_date = latest_date.replace(tzinfo=timezone.utc)
latest_date_utc8 = latest_date.astimezone(UTC_PLUS_8).replace(tzinfo=None)
current_time = datetime.now()
ml_age_minutes = (current_time - latest_date_utc8).total_seconds() / 60
current_time_utc8 = datetime.now().replace(tzinfo=UTC_PLUS_8).replace(tzinfo=None)
ml_age_minutes = (current_time_utc8 - latest_date_utc8).total_seconds() / 60
# 检查目标变量的类型和新鲜度
target_vars = []