summaryrefslogtreecommitdiffstats
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
authorMavhod <mavhod@gmail.com>2015-08-13 14:09:21 +0700
committerMavhod <mavhod@gmail.com>2015-08-13 14:09:21 +0700
commit69710055f0af99838d669b2e3fa3f1ae8bf6683d (patch)
tree9785ba83d0f65e5573b931192af5cdc88ba94c73 /drivers/unix/os_unix.cpp
parentc2e2f2e0aebf6342e6f18ae5d67b6a825590675a (diff)
downloadredot-engine-69710055f0af99838d669b2e3fa3f1ae8bf6683d.tar.gz
get_date on Linux
tm_mon is 0-11
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-rw-r--r--drivers/unix/os_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index 314e13cee4..ba151b0f44 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -242,7 +242,7 @@ OS::Date OS_Unix::get_date(bool utc) const {
lt=localtime(&t);
Date ret;
ret.year=1900+lt->tm_year;
- ret.month=(Month)lt->tm_mon;
+ ret.month=(Month)lt->tm_mon + 1;
ret.day=lt->tm_mday;
ret.weekday=(Weekday)lt->tm_wday;
ret.dst=lt->tm_isdst;