1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: 30 days interval

This commit is contained in:
Ferdinand Mütsch 2021-02-06 00:47:44 +01:00
parent 242928aba5
commit 38ae41611f

View File

@ -37,7 +37,6 @@ func ResolveInterval(interval string) (err error, from, to time.Time) {
from = StartOfToday().AddDate(0, 0, -14)
case models.IntervalPast30Days, models.IntervalWakatimeLast30Days:
from = StartOfToday().AddDate(0, 0, -30)
from = StartOfToday().AddDate(0, -6, 0)
case models.IntervalPast12Months:
from = StartOfToday().AddDate(0, -12, 0)
case models.IntervalAny: