From 776e1dac91cff3e09c78f527413ba3808678e4b3 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 2 Mar 2018 14:37:36 +0100 Subject: [PATCH] Fix: Hourly/Minutely should set minute/second to zero --- bin/domain/imag-diary/src/create.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/domain/imag-diary/src/create.rs b/bin/domain/imag-diary/src/create.rs index e86ada02..ad85f561 100644 --- a/bin/domain/imag-diary/src/create.rs +++ b/bin/domain/imag-diary/src/create.rs @@ -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 => {