From: Florian Forster Date: Sun, 28 Jan 2018 19:54:45 +0000 (+0100) Subject: Fix parsing of activity times. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=dbbfb2fa734958d78c2faa776a6848334eef74a0;p=kraftakt.git Fix parsing of activity times. --- diff --git a/gfitsync.go b/gfitsync.go index f913134..2c9a54b 100644 --- a/gfitsync.go +++ b/gfitsync.go @@ -329,7 +329,7 @@ func handleNotification(ctx context.Context, s *fitbit.Subscription) error { continue } - startTime, err := time.ParseInLocation("2006-01-02T15:04:05", a.StartDate+"T"+a.StartTime, profile.Timezone) + startTime, err := time.ParseInLocation("2006-01-02T15:04", a.StartDate+"T"+a.StartTime, profile.Timezone) if err != nil { errs = append(errs, fmt.Errorf("gfitClient.SetActivities() = %v", err)) return