Time fields should respect timezone
et opened this issue · comments
Eric Thomas commented
There's no way to get the original timezone of something like Activity.start_date
since they're parsed into NaiveDateTime
s which drops the timezone.
Ben Smith commented
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").