mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-26 15:13:01 +00:00
TypeError: can't compare offset-naive and offset-aware datetimes
This commit is contained in:
parent
b3932f06f0
commit
d84d86e2dd
@ -53,10 +53,10 @@ def get_control_mention():
|
|||||||
delta = relativedelta(
|
delta = relativedelta(
|
||||||
hour=hour_poll_posting, minute=0, second=0, weekday=TU(1))
|
hour=hour_poll_posting, minute=0, second=0, weekday=TU(1))
|
||||||
stop_thread_scan = thread_created_at + delta
|
stop_thread_scan = thread_created_at + delta
|
||||||
if check_stop_thread_scan(stop_thread_scan) == stop_thread_scan:
|
# if check_stop_thread_scan(stop_thread_scan) == stop_thread_scan: # broken because pytz
|
||||||
logger.success("проверка на корректность даты пройдена")
|
# logger.success("проверка на корректность даты пройдена")
|
||||||
else:
|
# else:
|
||||||
logger.warning("проверка на корректность даты не пройдена")
|
# logger.warning("проверка на корректность даты не пройдена")
|
||||||
# stop_thread_scan = check_stop_thread_scan(stop_thread_scan)
|
# stop_thread_scan = check_stop_thread_scan(stop_thread_scan)
|
||||||
movies_accept_time = stop_thread_scan.strftime(
|
movies_accept_time = stop_thread_scan.strftime(
|
||||||
'%H:%M %d.%m.%Y по Москве')
|
'%H:%M %d.%m.%Y по Москве')
|
||||||
|
Loading…
Reference in New Issue
Block a user