Setting The Timezone

Introduction

All dates and times provided by SportMonks are in UTC timezone by default. You can easily override the timezone by passing a tz parameter to the URL with a valid timezone name.

A request to the API with your own timezone would look like this:

GET https://cricket.sportmonks.com/api/v2.0/livescores?api_token=__TOKEN__&tz=Europe/Amsterdam

Invalid timezone will respond with a 400 error code.

A list of possible timezones via be found at: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Questions?

We're always happy to help with code or other questions you might have! Search our documentation, contact support, or get in touch with our sales team.

This article was last updated on 2019-01-17 14:33:58

{{ loginForm.errors.get('email') }}

{{ loginForm.errors.get('password') }}

Remember me?