Skip to content

Commit

Permalink
Update time 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
oherrala committed Aug 23, 2021
1 parent 7c66d5d commit 8816908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ serde = "1"
serde_derive = "1"
serde_json = "1"
sha1 = "0.6.0"
time = "0.2"
time = { version = "0.3", features = [ "local-offset" ] }
tiny_http = "0.8.1"
url = "2"
threadpool = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ where
};

let now =
time::OffsetDateTime::try_now_local().unwrap_or_else(|_| time::OffsetDateTime::now_utc());
time::OffsetDateTime::now_local().unwrap_or_else(|_| time::OffsetDateTime::now_utc());
let etag: String = (fs::metadata(&potential_file)
.map(|meta| filetime::FileTime::from_last_modification_time(&meta).unix_seconds() as u64)
.unwrap_or(now.nanosecond() as u64)
Expand Down

0 comments on commit 8816908

Please sign in to comment.