From 2b700ae1922acb440a20ae34d5bbf2b042f0e884 Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Wed, 2 Oct 2024 03:35:30 +0000 Subject: [PATCH] Better time format --- cmd/server/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index 2d558fd..97364ea 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -34,7 +34,7 @@ const Version = "1.0.0" func main() { log.Logger = zerolog. - New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}). + New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.DateTime}). With(). Timestamp(). Logger(). @@ -75,7 +75,7 @@ func main() { } log.Logger = zerolog. - New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}). + New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.DateTime}). With(). Timestamp(). Logger().