Skip to content
Snippets Groups Projects
Commit 7654e360 authored by Lars Bilke's avatar Lars Bilke
Browse files

%T and %F in format string are not supported on MSVC 2013.

parent 49c67f0b
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ std::string formatDate( ...@@ -121,7 +121,7 @@ std::string formatDate(
{ {
auto const time_t = std::chrono::system_clock::to_time_t(time); auto const time_t = std::chrono::system_clock::to_time_t(time);
char time_str[100]; char time_str[100];
if (std::strftime(time_str, sizeof(time_str), "%F %T%z", if (std::strftime(time_str, sizeof(time_str), "%Y-%m-%d %H:%M:%S%z",
std::localtime(&time_t))) { std::localtime(&time_t))) {
return time_str; return time_str;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment