sync - build broken

This commit is contained in:
2025-09-20 15:21:49 -07:00
parent c1993ba022
commit 626c473b01
94 changed files with 8471 additions and 1053 deletions

View File

@@ -0,0 +1,20 @@
package connect
import (
"time"
)
// Timezone represents a timezone in Garmin Connect.
type Timezone struct {
ID int `json:"unitId"`
Key string `json:"unitKey"`
GMTOffset float64 `json:"gmtOffset"`
DSTOffset float64 `json:"dstOffset"`
Group int `json:"groupNumber"`
TimeZone string `json:"timeZone"`
}
// Location will (try to) return a location for use with time.Time functions.
func (t *Timezone) Location() (*time.Location, error) {
return time.LoadLocation(t.Key)
}