From baa821e71c8c61d39e365d7574ec936ce00d1eae Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sun, 4 Sep 2022 19:54:04 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=D1=80=D0=B0=D1=81=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- date/date.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/date/date.go b/date/date.go index fe4f70e..3b8213f 100644 --- a/date/date.go +++ b/date/date.go @@ -3,5 +3,9 @@ package date import "time" func Today() int { - return int(time.Now().Weekday()) + location, err := time.LoadLocation("Asia/Novosibirsk") + if err != nil { + panic(err) + } + return int(time.Now().In(location).Weekday()) }