diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-02-06 01:47:23 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-02-09 01:03:32 +0100 |
commit | e25cf17a8a8bda3c4532fe9316b92a94a3158fe7 (patch) | |
tree | eae30856ac02bf222360e4336c8c65c1a5ddad4e | |
parent | 340dab18f031092a1c505da11bb8e154eac6f28f (diff) |
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>
-rw-r--r-- | bin/domain/imag-timetrack/src/month.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/domain/imag-timetrack/src/month.rs b/bin/domain/imag-timetrack/src/month.rs index a4028d73..8e9e7f60 100644 --- a/bin/domain/imag-timetrack/src/month.rs +++ b/bin/domain/imag-timetrack/src/month.rs @@ -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) |