Small optimization for stringifying chrono::time_point

This commit is contained in:
Martin Hořeňovský 2021-05-17 13:09:05 +02:00
parent 4cc247cc70
commit f50a06affa
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ struct ratio_string<std::milli> {
#else
std::strftime(timeStamp, timeStampSize, fmt, timeInfo);
#endif
return std::string(timeStamp);
return std::string(timeStamp, timeStampSize - 1);
}
};
}