static one_hour

This commit is contained in:
gabime
2014-03-01 14:38:12 +02:00
parent ddcf45d65f
commit 50b81974e3
4 changed files with 9 additions and 10 deletions

View File

@@ -42,9 +42,7 @@ private:
inline void c11log::formatters::default_formatter::_format_time(const log_clock::time_point& tp, std::ostream &dest)
{
using namespace std::chrono;
{
auto tm = details::os::localtime(log_clock::to_time_t(tp));
char buff[64];
int size = snprintf(buff, sizeof(buff), "[%d-%02d-%02d %02d:%02d:%02d]",