Fix: Use TIMEZONE instead && Update Dockerfile
This commit is contained in:
@ -40,7 +40,7 @@ WORKDIR /home/botuser
|
|||||||
|
|
||||||
RUN poetry install --no-interaction --no-ansi --no-dev
|
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/"]
|
VOLUME ["/home/botuser/data/"]
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ async def command_modify(ctx: SlashContext, time_or_message: str):
|
|||||||
f"{response_new_date.clean_content}",
|
f"{response_new_date.clean_content}",
|
||||||
settings={
|
settings={
|
||||||
"PREFER_DATES_FROM": "future",
|
"PREFER_DATES_FROM": "future",
|
||||||
"TO_TIMEZONE": f"{config_timezone}",
|
"TIMEZONE": f"{config_timezone}",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
date_new = parsed_date.strftime("%Y-%m-%d %H:%M:%S")
|
date_new = parsed_date.strftime("%Y-%m-%d %H:%M:%S")
|
||||||
@ -446,7 +446,7 @@ async def remind_add(
|
|||||||
f"{message_date}",
|
f"{message_date}",
|
||||||
settings={
|
settings={
|
||||||
"PREFER_DATES_FROM": "future",
|
"PREFER_DATES_FROM": "future",
|
||||||
"TO_TIMEZONE": f"{config_timezone}",
|
"TIMEZONE": f"{config_timezone}",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user