From bf660719964b4ed5487a7eb2aafd508d1af22d87 Mon Sep 17 00:00:00 2001 From: Kendall Weihe Date: Thu, 5 Sep 2024 17:44:29 -0400 Subject: [PATCH] Change XML datetimes to 'Z' notation from '+00:00' --- crates/web5/src/rfc3339.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/web5/src/rfc3339.rs b/crates/web5/src/rfc3339.rs index 9025ffad..1e6e46f9 100644 --- a/crates/web5/src/rfc3339.rs +++ b/crates/web5/src/rfc3339.rs @@ -10,7 +10,7 @@ where S: Serializer, { let datetime: chrono::DateTime = (*time).into(); - let s = datetime.to_rfc3339(); + let s = datetime.to_rfc3339_opts(chrono::SecondsFormat::Secs, true); serializer.serialize_str(&s) }