diff options
| author | Juan Linietsky | 2015-10-17 10:49:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-10-17 10:49:46 -0300 |
| commit | 277a339cf0cbcd4132180879d15c85cad34f7e10 (patch) | |
| tree | 0fb08acf370fe1f9951afe739d963f3ebb7b91d6 /drivers/unix/os_unix.cpp | |
| parent | c2515d352ed9324ec017ff29882d30bc0b3a5a0d (diff) | |
| parent | 3942117bbf1b669fb81628bb401d16ad83f1f2bb (diff) | |
| download | godot-277a339cf0cbcd4132180879d15c85cad34f7e10.tar.gz godot-277a339cf0cbcd4132180879d15c85cad34f7e10.tar.zst godot-277a339cf0cbcd4132180879d15c85cad34f7e10.zip | |
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -rw-r--r-- | drivers/unix/os_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 96f90e6be..8617061ad 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; |
