fix: USE_TZ=False 统一使用北京时间,修复 recover_stuck_tasks 时区比较错误
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m3s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
zyc 2026-04-04 17:10:55 +08:00
parent 1e76052c64
commit 95bdb0a6e8

View File

@ -189,7 +189,7 @@ CELERY_BEAT_SCHEDULE = {
LANGUAGE_CODE = 'zh-hans' LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai' TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True USE_I18N = True
USE_TZ = True USE_TZ = False
STATIC_URL = 'static/' STATIC_URL = 'static/'
STATIC_ROOT = BASE_DIR / 'staticfiles' STATIC_ROOT = BASE_DIR / 'staticfiles'