Skip to content

Commit

Permalink
feat: use utc instead of system local in time marshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
zzucch committed Aug 29, 2024
1 parent f37d50b commit d3005fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func TimestampToString(timestamp int64) string {
t, err := time.Unix(timestamp, 0).MarshalText()
t, err := time.Unix(timestamp, 0).UTC().MarshalText()
if err != nil {
log.Error(
"cannot convert timestamp to string",
Expand Down

0 comments on commit d3005fa

Please sign in to comment.