drop debug

This commit is contained in:
Bel LaPointe
2025-11-12 14:00:08 -07:00
parent b57618889e
commit 89185f5016
3 changed files with 11 additions and 3 deletions

View File

@@ -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::<u64>() {
Ok(n) => return Some(n),