]> OzVa Git service - ozva-cloud/commitdiff
refactor: date formatting in cache tests (#428)
authorMatthias Möller <m_moeller@live.de>
Wed, 7 Aug 2024 12:18:30 +0000 (14:18 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 12:18:30 +0000 (20:18 +0800)
tests/cache.rs

index af9adedbcf46dabb682a33afe09f8f6002404a98..5890d814497b9c8540a928d5867f68b3dce58d0b 100644 (file)
@@ -33,7 +33,7 @@ fn get_file_with_if_modified_since_condition(
         .expect("Received no valid last modified header");
 
     let req_modified_time = (last_modified + duration_after_file_modified)
-        .format("%a, %e %b %Y %T GMT")
+        .format("%a, %d %b %Y %T GMT")
         .to_string();
 
     let resp = fetch!(b"GET", format!("{}index.html", server.url()))