Skip to content

fix: 容器默认使用上海时区修复自动签到调度 - #25

Merged
IceeAn merged 1 commit into
IceeAn:mainfrom
hosea3000:main
Sep 7, 2026
Merged

IceeAn merged 1 commit into
IceeAn:mainfrom
hosea3000:main

Conversation

@hosea3000

Copy link
Copy Markdown
  • Dockerfile 安装 tzdata 并写入 /etc/localtime 与 /etc/timezone
  • docker-compose 显式设置 TZ=Asia/Shanghai 作为运行时保障
  • 修复容器 UTC 环境下每日 09:30 签到实际在北京时间 17:30 执行的问题

- Dockerfile 安装 tzdata 并写入 /etc/localtime 与 /etc/timezone
- docker-compose 显式设置 TZ=Asia/Shanghai 作为运行时保障
- 修复容器 UTC 环境下每日 09:30 签到实际在北京时间 17:30 执行的问题
@hosea3000

Copy link
Copy Markdown
Author

我是用容器部署,发现每天要到下午才签到,是容器时区的问题, 可以在容器构建前就指定时区

@IceeAn
IceeAn merged commit 0858cf9 into IceeAn:main Sep 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants