Author: Paolo Lulli <paolo@lulli.net>
Add comment
server/util/time.go | 2 ++
diff --git a/server/util/time.go b/server/util/time.go index 17b57edfbef5bc076fba44114d333b33db30582a..09c22eb505ceb4f8154b380f04f0f0968697b4ed 100644 --- a/server/util/time.go +++ b/server/util/time.go @@ -15,6 +15,8 @@ "strings" "time" ) +// Int64ToTimeUTC Omits the timezone +// To be used only for db queries func Int64ToTimeUTC(timeAsInt64 int64) string { return strings.TrimSpace(time.Unix(timeAsInt64, 0).UTC().String()[0:19]) }