From 89185f5016b141dc095d30252e9014b63a68ca7f Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:00:08 -0700 Subject: [PATCH] drop debug --- pttodoest/Cargo.lock | 10 ++++++++++ pttodoest/Cargo.toml | 1 + pttodoest/src/main.rs | 3 --- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pttodoest/Cargo.lock b/pttodoest/Cargo.lock index 9ce4be4..622ceac 100755 --- a/pttodoest/Cargo.lock +++ b/pttodoest/Cargo.lock @@ -169,6 +169,15 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "cron-parser" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "702858ce99daf23d8822fb22ec363b641b4bdcd9704182211fc113b01870f6de" +dependencies = [ + "chrono", +] + [[package]] name = "equivalent" version = "1.0.2" @@ -357,6 +366,7 @@ version = "0.1.0" dependencies = [ "chrono", "clap", + "cron-parser", "gethostname", "json-patch", "jsonptr", diff --git a/pttodoest/Cargo.toml b/pttodoest/Cargo.toml index 717855e..6ca4000 100755 --- a/pttodoest/Cargo.toml +++ b/pttodoest/Cargo.toml @@ -6,6 +6,7 @@ edition = "2024" [dependencies] chrono = "0.4.42" clap = { version = "4.5.51", features = ["derive"] } +cron-parser = "0.11.0" gethostname = "1.1.0" json-patch = "4.1.0" jsonptr = "0.7.1" diff --git a/pttodoest/src/main.rs b/pttodoest/src/main.rs index eb3427a..f6ddde7 100755 --- a/pttodoest/src/main.rs +++ b/pttodoest/src/main.rs @@ -528,16 +528,13 @@ impl Task { schedule += "T00"; } - eprintln!("0 PARSING DATE HOUR {}", &schedule); if regex::Regex::new(r"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}$") .unwrap() .is_match(&schedule) { - eprintln!("1 PARSING DATE HOUR {} like %Y-%m-%dT%H", &schedule); let date = schedule.clone() + ":00:00"; match chrono::NaiveDateTime::parse_from_str(&date, "%Y-%m-%dT%H:%M:%S") { Ok(datehour) => { - eprintln!("2 PARSING DATE HOUR {}", &schedule); let seconds = datehour.format("%s").to_string(); match seconds.parse::() { Ok(n) => return Some(n),