From ffaca5cabcf08cec479ff5715dc7e53cf2e742ac Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Fri, 16 Feb 2024 11:44:42 -0500 Subject: [PATCH] use time.TimeOnly for better readability --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 897d835..d207996 100644 --- a/main.go +++ b/main.go @@ -105,7 +105,7 @@ func avsSyncMain(cliCtx *cli.Context) error { sleepBeforeFirstSyncDuration = 0 * time.Second } else { now := time.Now() - firstSyncTime, err := time.Parse("15:04:05", firstSyncTimeStr) + firstSyncTime, err := time.Parse(time.TimeOnly, firstSyncTimeStr) firstSyncTime = time.Date(now.Year(), now.Month(), now.Day(), firstSyncTime.Hour(), firstSyncTime.Minute(), firstSyncTime.Second(), 0, now.Location()) if err != nil { return err