Skip to content

Commit

Permalink
[fix] wingw build
Browse files Browse the repository at this point in the history
  • Loading branch information
olegator77 committed Aug 4, 2019
1 parent cf5e23d commit 0086408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp_src/core/activity_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void Activity::GetJSON(WrSerializer& ser) const {
builder.Put("query_id", id);
std::time_t t = system_clock::to_time_t(startTime);
char buffer[80];
std::strftime(buffer, sizeof(buffer), "%F %T", std::localtime(&t));
std::strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", std::localtime(&t));
std::stringstream ss;
ss << buffer << '.' << std::setw(3) << std::setfill('0') << (duration_cast<milliseconds>(startTime.time_since_epoch()).count() % 1000);
builder.Put("query_start", ss.str());
Expand Down

0 comments on commit 0086408

Please sign in to comment.