diff --git a/core/src/lib/parse_conf.h b/core/src/lib/parse_conf.h index f1afe6c43ee..97acda88600 100644 --- a/core/src/lib/parse_conf.h +++ b/core/src/lib/parse_conf.h @@ -423,7 +423,8 @@ static std::string TPAsString(const std::chrono::system_clock::time_point& tp) { std::time_t t = std::chrono::system_clock::to_time_t(tp); char str[100]; - if (!std::strftime(str, sizeof(str), "%F_%H:%M:%S", std::localtime(&t))) { + if (!std::strftime(str, sizeof(str), "%Y-%m-%d_%H:%M:%S", + std::localtime(&t))) { return std::string("strftime error"); } std::string ts = str;