aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////