fix расписание
This commit is contained in:
parent
b2e6d35893
commit
baa821e71c
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue