Growing Discord community — direct access to the developer, live coverage & picks. Join now →
1
Feature Archived Mar 20, 2026 · Artonis

Timezone

Hello Is it possible to add timezone support to the API? I live in Central Europe, and due to the time offset, the api/live endpoint isn't working correctly for me. For example, today (2026-03-07) Barcelona plays at 9:00 PM, but according to the server, the match is scheduled for 2026-03-08 at 00:00. Because of this, the API returns an empty value. I know this can be bypassed by sending a request to the server with a modified time before the fetch, but it would be more convenient to have an option to provide a time zone, like timezone=Europe/Warsaw, so the API could adjust the meeting time to the local time in its response. My local time is UTC+1, but the API always returns a fixed UTC+4.

Resolution: Added ?tz= query parameter to /api/events/, /api/live/, /api/predictions/, and /api/player-stats/ endpoints. Accepts IANA timezone names (e.g. Europe/Warsaw, America/New_York). Shifts both date filters and response datetimes to the specified timezone. Default remains Asia/Dubai (UTC+4).
Comments (0)

No comments yet. Be the first!