关于小鸡时区问题

宿主机和docker容器内都已经将时区设置为Asia/Shanghai,可是为啥定时任务执行时间慢了13个小时,而docker应用获取的时间慢了8个小时,通过命令date查看的时间又没错,ccs的洛杉矶小鸡,装的debian11系统,服了,有哪位大佬知道啥情况 ————————————— root@debian11-server:~# date Mon 15 Jan 2024 11:13:25 AM CST root@debian11-server:~# docker exec -it memos /bin/sh /usr/local/memos # date Mon Jan 15 11:13:39 CST 2024 /usr/local/memos # /usr/local/memos # timedatectl /bin/sh: timedatectl: not found /usr/local/memos # exit root@debian11-server:~# timedatectl                Local time: Mon 2024-01-15 11:21:56 CST            Universal time: Mon 2024-01-15 03:21:56 UTC                  RTC time: Mon 2024-01-15 03:21:57                 Time zone: Asia/Shanghai (CST, +0800) System clock synchronized: yes               NTP service: active           RTC in local TZ: no root@debian11-server:~#

请登录后发表评论

    没有回复内容