mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-01 22:02:20 +00:00
Make sure we don't get todays values
This commit is contained in:
parent
5a073e5232
commit
31ad65d711
2 changed files with 21 additions and 0 deletions
|
@ -22,6 +22,7 @@ func getStartofDayMonday() time.Time {
|
|||
}
|
||||
// Iterate until Monday!
|
||||
t := time.Now().In(localTime)
|
||||
t = t.AddDate(0, 0, -1)
|
||||
for t.Weekday() != time.Monday {
|
||||
t = t.AddDate(0, 0, -1)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue