fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-11-03 18:18:56 +10:00
parent 804bea284a
commit 63b5d0809b

4
bot.py
View File

@ -17,11 +17,11 @@ dp = Dispatcher(bot)
@dp.message_handler(commands=["time"]) @dp.message_handler(commands=["time"])
async def send_time(message: types.Message): async def send_time(message: types.Message):
cd = datetime.datetime.now().strftime("%d/%m/%Y") cd = datetime.datetime.now().strftime("%d/%m/%Y")
ct = datetime.datetime.now().strftime('%H:%M') ct = datetime.datetime.now()
ct = ct+datetime.timedelta(hours=14) ct = ct+datetime.timedelta(hours=14)
ct2 = ct.strftime('%H:%M') ct2 = ct.strftime('%H:%M')
# new_year = datetime.date(2022, 12, 31) # new_year = datetime.date(2022, 12, 31)
await message.reply(f'Сегодня {cd}\nВремя: {ct2}') #отображение времени, пока не рабоатет await message.reply(f'Сегодня {cd} \nВремя:{ct2}') #отображение времени, пока не рабоатет