Fix: Hourly/Minutely should set minute/second to zero

This commit is contained in:
Matthias Beyer 2018-03-02 14:37:36 +01:00
parent 7cd3bb059f
commit 776e1dac91

View file

@ -109,6 +109,8 @@ fn create_id_from_clispec(create: &ArgMatches, diaryname: &str, timed_type: Time
Timed::Hourly => {
debug!("Creating hourly-timed entry");
get_hourly_id(create)
.with_minute(0)
.with_second(0)
},
Timed::Minutely => {
@ -124,6 +126,7 @@ fn create_id_from_clispec(create: &ArgMatches, diaryname: &str, timed_type: Time
.unwrap_or(time.minute());
time.with_minute(min)
.with_second(0)
},
Timed::Secondly => {