slashdotdash / strava

Elixir wrapper for the Strava API (v3)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time fields should respect timezone

et opened this issue · comments

There's no way to get the original timezone of something like Activity.start_date since they're parsed into NaiveDateTimes which drops the timezone.

The Strava API uses ISO 8601 for all date/times which doesn't contain a timezone. Hence why they are converted to NaiveDateTime.

The API provides a separate timezone field for an activity start date.

This is available as Strava.Activity.timezone, a string (e.g. "(GMT-08:00) America/Los_Angeles").