summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-10-17 10:49:46 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-10-17 10:49:46 -0300
commit277a339cf0cbcd4132180879d15c85cad34f7e10 (patch)
tree0fb08acf370fe1f9951afe739d963f3ebb7b91d6 /drivers
parentc2515d352ed9324ec017ff29882d30bc0b3a5a0d (diff)
parent3942117bbf1b669fb81628bb401d16ad83f1f2bb (diff)
Merge pull request #2365 from Mavhod/patch-1
get_date on Linux
Diffstat (limited to 'drivers')
-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 96f90e6be1..8617061ad4 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -243,7 +243,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;