Fix: Hourly/Minutely should set minute/second to zero
This commit is contained in:
parent
7cd3bb059f
commit
776e1dac91
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,8 @@ fn create_id_from_clispec(create: &ArgMatches, diaryname: &str, timed_type: Time
|
||||||
Timed::Hourly => {
|
Timed::Hourly => {
|
||||||
debug!("Creating hourly-timed entry");
|
debug!("Creating hourly-timed entry");
|
||||||
get_hourly_id(create)
|
get_hourly_id(create)
|
||||||
|
.with_minute(0)
|
||||||
|
.with_second(0)
|
||||||
},
|
},
|
||||||
|
|
||||||
Timed::Minutely => {
|
Timed::Minutely => {
|
||||||
|
@ -124,6 +126,7 @@ fn create_id_from_clispec(create: &ArgMatches, diaryname: &str, timed_type: Time
|
||||||
.unwrap_or(time.minute());
|
.unwrap_or(time.minute());
|
||||||
|
|
||||||
time.with_minute(min)
|
time.with_minute(min)
|
||||||
|
.with_second(0)
|
||||||
},
|
},
|
||||||
|
|
||||||
Timed::Secondly => {
|
Timed::Secondly => {
|
||||||
|
|
Loading…
Reference in a new issue