Remove use of deprecated function
Change: from-timestamp-opt
@@ -147,7 +147,8 @@ impl Revision {
let ts = filter_commit.time().seconds();
- let ndt = chrono::NaiveDateTime::from_timestamp(ts, 0);
+ let ndt = chrono::NaiveDateTime::from_timestamp_opt(ts, 0)
+ .ok_or(josh_error("from_timestamp_opt"))?;
Ok(ndt.format(&format).to_string())
}
