fix расписание

This commit is contained in:
Владимир Фёдоров 2022-09-04 19:54:04 +07:00
parent b2e6d35893
commit baa821e71c
1 changed files with 5 additions and 1 deletions

View File

@ -3,5 +3,9 @@ package date
import "time" import "time"
func Today() int { 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())
} }