Fix rust binary builds
This commit is contained in:
parent
1482b1c614
commit
c503ab76c5
2 changed files with 4 additions and 4 deletions
|
@ -22,9 +22,9 @@ path = "src/rename_for_unix.rs"
|
|||
name = "random_password"
|
||||
path = "src/random_password.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "prettify_markdown_notes"
|
||||
path = "src/prettify_markdown_notes.rs"
|
||||
#[[bin]]
|
||||
#name = "prettify_markdown_notes"
|
||||
#path = "src/prettify_markdown_notes.rs"
|
||||
|
||||
[dependencies]
|
||||
chrono = "0.4.23"
|
||||
|
|
|
@ -43,7 +43,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
for line in lines {
|
||||
if timestamp.is_match(&line) {
|
||||
let unix_utc: i64 = line[1..].parse()?;
|
||||
let time = NaiveDateTime::from_timestamp_opt(millis, 0).unwrap();
|
||||
let time = NaiveDateTime::from_timestamp_opt(unix_utc, 0).unwrap();
|
||||
let local_time = Local.from_utc_datetime(&time);
|
||||
|
||||
let fmttime = local_time.format("%a %b %e %T %Y").to_string();
|
||||
|
|
Loading…
Reference in a new issue