Skip to content

Commit

Permalink
fix: time format in ISO8601.
Browse files Browse the repository at this point in the history
  • Loading branch information
arshamalh committed Apr 18, 2024
1 parent e0bc79b commit c115173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (t Time) TimeBetween(min, max time.Time) time.Time {
// ISO8601 returns a fake time in ISO8601 format for Time
func (t Time) ISO8601(max time.Time) string {
t1 := t.Time(max)
return t1.Format("2006-02-01T15:04:05+000")
return t1.Format("2006-01-02T15:04:05+000")
}

// ANSIC returns a fake time in ANSIC format for Time
Expand Down

0 comments on commit c115173

Please sign in to comment.