update calories message
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-15 19:13:10 +07:00
parent a35a5c8efc
commit 3f9447f0b8
3 changed files with 30 additions and 19 deletions
+16
View File
@@ -0,0 +1,16 @@
package times
import "time"
func GetStartDay() time.Time {
loc, _ := time.LoadLocation("Asia/Novosibirsk")
t := time.Now().In(loc)
t = time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, loc)
return t
}
func GetStartWeek() time.Time {
t := GetStartDay()
t = t.Add(-6 * 24 * time.Hour)
return t
}