Browse Source

Merge pull request #2365 from Mavhod/patch-1

get_date on Linux
Juan Linietsky 10 years ago
parent
commit
277a339cf0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/unix/os_unix.cpp

+ 1 - 1
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;