Skip to content

Commit b494d51

Browse files
author
Alexey Pleshakov
committed
changed log file namings so we can upload such artifacts
1 parent d4e4d27 commit b494d51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/utils/TimeUtils.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*/
44

55
#include "TimeUtils.h"
6+
#include "StringUtils.h"
67

78
#include <algorithm>
89

@@ -15,7 +16,8 @@ namespace TimeUtils {
1516
std::ostringstream ss;
1617
ss << std::put_time(gmtime(&time_t), "%FT%T");
1718
ss << std::chrono::duration_cast<std::chrono::milliseconds>(now.time_since_epoch()).count() % 1000;
18-
return ss.str();
19+
std::string str = ss.str();
20+
return StringUtils::replaceAll(str, ':', '-');
1921
}
2022

2123
systemClockTimePoint now() {

0 commit comments

Comments
 (0)