aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-10-22 14:12:20 +0200
committerGitHub Enterprise <[email protected]>2024-10-22 14:12:20 +0200
commit664538a2296cd09a362f22b3dfa346861ed024f2 (patch)
treee11bbf729f678387623751c198ad066e3e38faf0 /src
parentUse a smaller thread pool during pre-cache phase of GC to reduce memory press... (diff)
downloadzen-664538a2296cd09a362f22b3dfa346861ed024f2.tar.xz
zen-664538a2296cd09a362f22b3dfa346861ed024f2.zip
fix gc date (#204)
* fix month conversion in ToDateTime
Diffstat (limited to 'src')
-rw-r--r--src/zencore/include/zencore/compactbinarybuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zencore/include/zencore/compactbinarybuilder.h b/src/zencore/include/zencore/compactbinarybuilder.h
index 9c81cf490..1c625cacc 100644
--- a/src/zencore/include/zencore/compactbinarybuilder.h
+++ b/src/zencore/include/zencore/compactbinarybuilder.h
@@ -669,7 +669,7 @@ ToDateTime(std::chrono::system_clock::time_point TimePoint)
{
time_t Time = std::chrono::system_clock::to_time_t(TimePoint);
tm UTCTime = *gmtime(&Time);
- return DateTime(1900 + UTCTime.tm_year, UTCTime.tm_mon, UTCTime.tm_mday, UTCTime.tm_hour, UTCTime.tm_min, UTCTime.tm_sec);
+ return DateTime(1900 + UTCTime.tm_year, UTCTime.tm_mon + 1, UTCTime.tm_mday, UTCTime.tm_hour, UTCTime.tm_min, UTCTime.tm_sec);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////