Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarTime_windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarTime_windows.cpp')
-rw-r--r--source/core/StarTime_windows.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/core/StarTime_windows.cpp b/source/core/StarTime_windows.cpp
index 2b3e797..f1f10b4 100644
--- a/source/core/StarTime_windows.cpp
+++ b/source/core/StarTime_windows.cpp
@@ -14,13 +14,13 @@ String Time::printDateAndTime(int64_t epochTicks, String format) {
ptm = localtime(&requestedTime);
return format.replaceTags(StringMap<String>{
- {"year", strf("%04d", ptm->tm_year + 1900)},
- {"month", strf("%02d", ptm->tm_mon + 1)},
- {"day", strf("%02d", ptm->tm_mday)},
- {"hours", strf("%02d", ptm->tm_hour)},
- {"minutes", strf("%02d", ptm->tm_min)},
- {"seconds", strf("%02d", ptm->tm_sec)},
- {"millis", strf("%03d", (epochTicks % epochTickFrequency()) / (epochTickFrequency() / 1000))},
+ {"year", strf("{:04d}", ptm->tm_year + 1900)},
+ {"month", strf("{:02d}", ptm->tm_mon + 1)},
+ {"day", strf("{:02d}", ptm->tm_mday)},
+ {"hours", strf("{:02d}", ptm->tm_hour)},
+ {"minutes", strf("{:02d}", ptm->tm_min)},
+ {"seconds", strf("{:02d}", ptm->tm_sec)},
+ {"millis", strf("{:03d}", (epochTicks % epochTickFrequency()) / (epochTickFrequency() / 1000))},
});
}