From d5bcf0169b4bf553d98aa645c577d2b8af0a856a Mon Sep 17 00:00:00 2001 From: FirosStuart Date: Tue, 13 Sep 2022 20:00:26 +0900 Subject: [PATCH] Fix: Use TIMEZONE instead && Update Dockerfile --- Dockerfile | 2 +- discord_reminder_bot/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 27de796..de7a9fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ WORKDIR /home/botuser RUN poetry install --no-interaction --no-ansi --no-dev -COPY discord_reminder_bot/main.py discord_reminder_bot/settings.py /home/botuser/discord_reminder_bot/ +COPY discord_reminder_bot/main.py discord_reminder_bot/settings.py discord_reminder_bot/countdown.py /home/botuser/discord_reminder_bot/ VOLUME ["/home/botuser/data/"] diff --git a/discord_reminder_bot/main.py b/discord_reminder_bot/main.py index 878bf22..1132dfa 100644 --- a/discord_reminder_bot/main.py +++ b/discord_reminder_bot/main.py @@ -146,7 +146,7 @@ async def command_modify(ctx: SlashContext, time_or_message: str): f"{response_new_date.clean_content}", settings={ "PREFER_DATES_FROM": "future", - "TO_TIMEZONE": f"{config_timezone}", + "TIMEZONE": f"{config_timezone}", }, ) date_new = parsed_date.strftime("%Y-%m-%d %H:%M:%S") @@ -446,7 +446,7 @@ async def remind_add( f"{message_date}", settings={ "PREFER_DATES_FROM": "future", - "TO_TIMEZONE": f"{config_timezone}", + "TIMEZONE": f"{config_timezone}", }, )