From 1c41db0c2d78413b03c47ae91089a34fb49d9b89 Mon Sep 17 00:00:00 2001 From: tobyp Date: Thu, 22 Feb 2024 01:30:01 +0100 Subject: [PATCH] fix: timestamp format of getlastmodified in dav xml (#366) --- src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.rs b/src/server.rs index 563cc44..d891bc6 100644 --- a/src/server.rs +++ b/src/server.rs @@ -1362,7 +1362,7 @@ impl PathItem { pub fn to_dav_xml(&self, prefix: &str) -> String { let mtime = match Utc.timestamp_millis_opt(self.mtime as i64) { - LocalResult::Single(v) => v.to_rfc2822(), + LocalResult::Single(v) => format!("{}", v.format("%a, %d %b %Y %H:%M:%S GMT")), _ => String::new(), }; let mut href = encode_uri(&format!("{}{}", prefix, &self.name));