- fitbitClient, err := fitbit.NewClient(ctx, s.OwnerID, u)
+ profile, err := fitbitClient.Profile(ctx)
+ if err != nil {
+ return err
+ }
+ log.Debugf(ctx, "profile = %+v", profile)
+
+ tm, err := time.ParseInLocation("2006-01-02", s.Date, profile.Timezone)