From d3005fa1cf53b3e03b3bcbc6339504bdaa29deae Mon Sep 17 00:00:00 2001 From: zzucch Date: Fri, 30 Aug 2024 02:32:34 +0300 Subject: [PATCH] feat: use utc instead of system local in time marshalling --- internal/util/timestamp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/timestamp.go b/internal/util/timestamp.go index 8474254..ad9cbb9 100644 --- a/internal/util/timestamp.go +++ b/internal/util/timestamp.go @@ -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",