Fix: We go to the next month, not to the current one

The filter filters from now to the first second of the next month, not
the first second of the current month. Hence we have to add one here.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-02-06 01:47:23 +01:00
parent 340dab18f0
commit e25cf17a8a
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ pub fn month(rt: &Runtime) -> i32 {
let (year, month) = if now.month() == 12 {
(now.year() + 1, 1)
} else {
(now.year(), now.month())
(now.year(), now.month() + 1)
};
NaiveDate::from_ymd(year, month, 1).and_hms(0, 0, 0)