summaryrefslogtreecommitdiff
path: root/louloulibs/xmpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-08-23 20:52:37 +0200
committerlouiz’ <louiz@louiz.org>2016-08-23 20:52:37 +0200
commitb59fc2a834dccb35f12dcfec624b6181e4e2fbe9 (patch)
tree305552ff356c67811d1b1a6f87708f03af356fe6 /louloulibs/xmpp
parenta195939cdaca343013d32ae902839ffdb28c33cb (diff)
downloadbiboumi-b59fc2a834dccb35f12dcfec624b6181e4e2fbe9.tar.gz
biboumi-b59fc2a834dccb35f12dcfec624b6181e4e2fbe9.tar.bz2
biboumi-b59fc2a834dccb35f12dcfec624b6181e4e2fbe9.tar.xz
biboumi-b59fc2a834dccb35f12dcfec624b6181e4e2fbe9.zip
Use Z instead of z in the timestamp format
Diffstat (limited to 'louloulibs/xmpp')
-rw-r--r--louloulibs/xmpp/xmpp_component.cpp2
1 files changed, 1 insertions, 1 deletions
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(&timestamp));
+ std::strftime(date_buf, stamp_size, "%FT%TZ", std::gmtime(&timestamp));
delay["stamp"] = date_buf;
message.add_child(std::move(delay));