Skip to content

Commit

Permalink
properly parse datetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
NoBypass committed Oct 14, 2024
1 parent 0e39b87 commit 89f3b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marshal/marshalutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func isTime(ts any) bool {
func parseTimes(ts any) any {
switch ts.(type) {
case time.Time:
return ts.(time.Time).Format(time.RFC3339)
return ts.(time.Time).Format("d\"2006-01-02T15:04:05Z07:00\"")
case time.Duration:
var result string
d := ts.(time.Duration)
Expand Down

0 comments on commit 89f3b30

Please # to comment.