add all_lessons
This commit is contained in:
+2
-2
@@ -2,10 +2,10 @@ package date
|
||||
|
||||
import "time"
|
||||
|
||||
func Today() int {
|
||||
func Today(offset time.Duration) string {
|
||||
location, err := time.LoadLocation("Asia/Novosibirsk")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return int(time.Now().In(location).Weekday())
|
||||
return time.Now().In(location).Add(offset).Format("2006-01-02")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user