diff --git a/Cargo.lock b/Cargo.lock index 03fdd3cd8..0d9f5e004 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1710,9 +1710,9 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jiff" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a45489186a6123c128fdf6016183fcfab7113e1820eb813127e036e287233fb" +checksum = "b9d9d414fc817d3e3d62b2598616733f76c4cc74fbac96069674739b881295c8" dependencies = [ "jiff-tzdb-platform", "serde", diff --git a/Cargo.toml b/Cargo.toml index c5e7e483b..b97e3af75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -112,7 +112,7 @@ indexmap = { version = "2.5.0" } indicatif = { version = "0.17.8" } indoc = { version = "2.0.5" } itertools = { version = "0.13.0" } -jiff = { version = "0.1.13", features = ["serde"] } +jiff = { version = "0.1.14", features = ["serde"] } junction = { version = "1.2.0" } krata-tokio-tar = { version = "0.4.2" } mailparse = { version = "0.15.0" } diff --git a/crates/uv-client/src/httpcache/mod.rs b/crates/uv-client/src/httpcache/mod.rs index 32b8032cb..ca99eb4d4 100644 --- a/crates/uv-client/src/httpcache/mod.rs +++ b/crates/uv-client/src/httpcache/mod.rs @@ -1381,11 +1381,9 @@ fn unix_timestamp_to_rfc2822(seconds: u64) -> Option { use jiff::fmt::rfc2822::DateTimePrinter; unix_timestamp_to_datetime(seconds).and_then(|timestamp| { - let mut buf = String::new(); DateTimePrinter::new() - .print_timestamp(×tamp, &mut buf) - .ok()?; - Some(buf) + .timestamp_to_rfc9110_string(×tamp) + .ok() }) }