Answer the question
In order to leave comments, you need to log in
Heroku Telegram bot time?
I have a weather parser bot for a telegram channel. There is a schedule module. According to the plan, the bot should earn and parse the weather every day at 8:00 am (Tashkent time). The script specifies the time "every day at 8:00". Deployed the bot to Heroku. Configured in Reveal config TZ=Asia/Tashkent. Since we have GMT +5. And Heroku works according to UTC as I understand it. The big problem is that when the bot starts at 8:00 am (Tashkent time) Heroku parses the data that is displayed the day before. I don’t understand one thing, let’s say when we have 8:00 in UTC 3:00 (GMT + 5), but 3:00 is this number TODAY? Since after 00:00 it is already TODAY. But Heroku shows today's date as yesterday, and tomorrow's date as today. Several times I changed servers from the USA to Europe and vice versa. Does not react. Logically, the error is correct, because when the bot starts at 8:00 Tashkent time on Heroku, the time is 03: 00 and when the site is parsed, the data that should be displayed at 03:00 is displayed. But still it is not tomorrow but today. I don't understand this. There are a lot of the best programmers and smart people here. The bot starts at 8:00 am and posts on the channel, but the data is wrong. What do i do? Sorry for the grammar.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question