Use Z instead of z in the timestamp format

This commit is contained in:
louiz’
2016-08-23 20:52:37 +02:00
parent a195939cda
commit b59fc2a834
+1 -1
View File
@@ -447,7 +447,7 @@ void XmppComponent::send_history_message(const std::string& muc_name, const std:
delay["from"] = muc_name + "@" + this->served_hostname; delay["from"] = muc_name + "@" + this->served_hostname;
constexpr std::size_t stamp_size = 20; constexpr std::size_t stamp_size = 20;
char date_buf[stamp_size]; 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; delay["stamp"] = date_buf;
message.add_child(std::move(delay)); message.add_child(std::move(delay));