Compare commits

..

No commits in common. "44a6ac5110d3dacbc3e66d266e623225773ff61e" and "2d8d0db4cb421e8578354d739db5ae060599bcea" have entirely different histories.

View file

@ -510,13 +510,9 @@ fn handle_command(
let Some(issue) = issues.get_mut_issue(issue_id) else {
return Err(anyhow::anyhow!("issue {} not found", issue_id));
};
let done_time = match chrono::DateTime::parse_from_rfc3339(done_time) {
Ok(done_time) => done_time.with_timezone(&chrono::Local),
Err(e) => {
eprintln!("failed to parse done-time from {}", done_time);
return Err(e.into());
}
};
let done_time = chrono::DateTime::parse_from_rfc3339(done_time)
.unwrap()
.with_timezone(&chrono::Local);
issue.set_done_time(done_time)?;
}
None => match &issue.done_time {