At the moment, when I use the resulting NSDate type from a session message it defaults to a time zone of GMT. Is there a way to identify what the local timezone is for the activity?
At the moment, when I use the resulting NSDate type from a session message it defaults to a time zone of GMT. Is there a way to identify what the local timezone is for the activity?
Working with date time values is similar across each SDK. Date time values are stored as the number of seconds since the FIT Epoch, which is midnight on December 31, 1989 UTC. These two recipes from the FIT Cookbook go into more detail.
Working with Date Time Values
https://developer.garmin.com/fit/cookbook/datetime/
Decoding FIT Activity Files, specifically the section on Converting Timestamps to Local Time
https://developer.garmin.com/fit/cookbook/decoding-activity-files/