Skip to content

Commit

Permalink
Merge pull request #2515 from alingse/fix-time-parse
Browse files Browse the repository at this point in the history
fix wrong time.Parse args order
  • Loading branch information
neilfordyce authored May 29, 2024
2 parents 9c5c369 + e4c01ad commit eaa4157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annotate/cmd/annotate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func main() {
end := time.Now().UTC()
if *startFlag != "" {
var err error
start, err = time.Parse(*startFlag, timeFormat)
start, err = time.Parse(timeFormat, *startFlag)
if err != nil {
log.Fatalf("Failed to parse start time, expecting format like %v, got %v", timeFormat, *startFlag)
}
Expand Down

0 comments on commit eaa4157

Please sign in to comment.