From b59fc2a834dccb35f12dcfec624b6181e4e2fbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 23 Aug 2016 20:52:37 +0200 Subject: Use Z instead of z in the timestamp format --- louloulibs/xmpp/xmpp_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'louloulibs') diff --git a/louloulibs/xmpp/xmpp_component.cpp b/louloulibs/xmpp/xmpp_component.cpp index 46c070a..07d2408 100644 --- a/louloulibs/xmpp/xmpp_component.cpp +++ b/louloulibs/xmpp/xmpp_component.cpp @@ -447,7 +447,7 @@ void XmppComponent::send_history_message(const std::string& muc_name, const std: delay["from"] = muc_name + "@" + this->served_hostname; constexpr std::size_t stamp_size = 20; char date_buf[stamp_size]; - std::strftime(date_buf, stamp_size, "%FT%Tz", std::gmtime(×tamp)); + std::strftime(date_buf, stamp_size, "%FT%TZ", std::gmtime(×tamp)); delay["stamp"] = date_buf; message.add_child(std::move(delay)); -- cgit v1.2.3