We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e4d27 commit b494d51Copy full SHA for b494d51
server/src/utils/TimeUtils.cpp
@@ -3,6 +3,7 @@
3
*/
4
5
#include "TimeUtils.h"
6
+#include "StringUtils.h"
7
8
#include <algorithm>
9
@@ -15,7 +16,8 @@ namespace TimeUtils {
15
16
std::ostringstream ss;
17
ss << std::put_time(gmtime(&time_t), "%FT%T");
18
ss << std::chrono::duration_cast<std::chrono::milliseconds>(now.time_since_epoch()).count() % 1000;
- return ss.str();
19
+ std::string str = ss.str();
20
+ return StringUtils::replaceAll(str, ':', '-');
21
}
22
23
systemClockTimePoint now() {
0 commit comments