We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
duration
1 parent a48449d commit 0180623Copy full SHA for 0180623
activity.go
@@ -120,7 +120,7 @@ func (a *Activity) UnmarshalJSON(b []byte) error {
120
a.DetailsLink = raw.DetailsLink
121
a.Calories = raw.Calories
122
a.StartDateTime = startDateTime
123
- a.Duration = time.Duration(raw.Distance * 1000 * 1000) // convert milliseconds to nanoseconds.
+ a.Duration = time.Duration(raw.Duration * 1000 * 1000) // convert milliseconds to nanoseconds.
124
a.Distance = raw.Distance
125
a.Steps = raw.Steps
126
a.HasActiveZoneMinutes = raw.HasActiveZoneMinutes
0 commit comments