Fix: Use TIMEZONE instead && Update Dockerfile

This commit is contained in:
FirosStuart
2022-09-13 20:00:26 +09:00
parent a7b131a729
commit d5bcf0169b
2 changed files with 3 additions and 3 deletions

View File

@ -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/"]

View File

@ -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}",
},
)