From e9e743675c835d40bee5feb70cd32967acd0bdd8 Mon Sep 17 00:00:00 2001 From: chenwj113 Date: Sun, 21 May 2023 22:16:56 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E6=94=B9=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=92=8C=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ main.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e65bd8a..6f3afc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,8 @@ RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ # 应用启动 FROM python:3.8.6-slim +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + RUN echo "Asia/Shanghai" > /etc/timezone COPY --from=build /install /usr/local diff --git a/main.py b/main.py index 0bb0c24..c37a5f6 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,7 @@ def get_data_job(lottery_type='pls'): print(f'issue:{draw_issue}已经存在') -@repeat(every().day.at("21:50")) +@repeat(every().day.at("22:20")) def pls_job(): get_data_job(lottery_type='pls')