diff --git a/requirements.txt b/requirements.txt index bf96158..5169ac2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ APScheduler==3.10.4 -aiogram==3.4.1 +aiogram==3.5.0 colorlog==6.8.2 pytz==2024.1 typing~=3.7.4.3 diff --git a/tgbot/utils/const_functions.py b/tgbot/utils/const_functions.py index 379f64e..ecf21aa 100644 --- a/tgbot/utils/const_functions.py +++ b/tgbot/utils/const_functions.py @@ -173,7 +173,7 @@ def convert_date(from_time, full=True, second=True) -> Union[str, int]: else: x_year, x_month, x_day = cache_date[2], cache_date[1], cache_date[0] - x_hour, x_minute, x_second = cache_time[0], cache_time[2], cache_time[2] + x_hour, x_minute, x_second = cache_time[0], cache_time[1], cache_time[2] from_time = f"{x_day}.{x_month}.{x_year} {x_hour}:{x_minute}:{x_second}" else: