EXBO-Studio / stalcraft-api

Public issue tracker for Stalcraft API
11 stars 0 forks source link

API emissions #37

Closed antondevya9 closed 2 months ago

antondevya9 commented 3 months ago

I don't understand why the api outputs incorrect data. For example, it is now 10:38 (Moscow). The emission was at 8:40 (Moscow).

The API outputs:

current_start=None
previous_start=datetime.datetime(2024, 7, 19, 5, 38, 53, tzinfo=datetime.timezone.utc)
previous_end=datetime.datetime(2024, 7, 19, 5, 42, 53, tzinfo=datetime.timezone.utc)

API says that the emission was 5:38. But if you look at the official STALCRAFT bot in VK, which correctly notifies about emissions, then the emission was 8:40.

I'm NOT using a DEMO API. I have access to the official api.

RU server.

antondevya9 commented 3 months ago

Кто шарит, помогите а.....

Midnighter32 commented 3 months ago

Апи возвращает время для UTC-0 image Московское время UTC+3. Прибавь ко времени начала и конца 3 часа, и всё совпадёт image