Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Garmin Connect Push API Sample Date Processing

Rank

Total Posts: 5

Joined 2016-12-02

PM

Hi--



There appears to be some hoops one needs to go through in order to figure out the date that an activity has occurred. The Garmin Connect team has wonderfully answered most of them, but they have pointed me here for this one.

To determine whether there is an adjustment required for timezone, it appears that one needs to compare the Local Timestamp and the Timestamp of an Activity. For most of the new objects we are receiving, this seems fine since those values are generally near each other (equal or within Timezone constraints).

The sample files included (1277895185.fit) however, doesn't have this pattern. It comes in as:

localtimestamp: 832086587
timestamp: 6573716

Does one simply assume that they are the same timezone? Or how does one normalize the timestamp to be closer to the localtimestamp? Thanks.



Eric