diff options
| author | est31 | 2015-06-06 03:23:34 +0200 |
|---|---|---|
| committer | est31 | 2015-06-06 03:23:34 +0200 |
| commit | 26ea12a873d0e7c1467ee6b52c9559dc5f456bd3 (patch) | |
| tree | 009ac012ba39a0435d56cbccbd0b6ac8800ae297 /platform/windows | |
| parent | 8dde67cf706ae6e6a33eefdf69aa6922fac0e909 (diff) | |
| download | godot-26ea12a873d0e7c1467ee6b52c9559dc5f456bd3.tar.gz godot-26ea12a873d0e7c1467ee6b52c9559dc5f456bd3.tar.zst godot-26ea12a873d0e7c1467ee6b52c9559dc5f456bd3.zip | |
Use local time for both time and date on win
On unix and nacl, both date and time are expressed in local time.
Diffstat (limited to 'platform/windows')
| -rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 4e8f9fcd9..4bf4fea84 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1832,7 +1832,7 @@ String OS_Windows::get_name() { OS::Date OS_Windows::get_date() const { SYSTEMTIME systemtime; - GetSystemTime(&systemtime); + GetLocalTime(&systemtime); Date date; date.day=systemtime.wDay; date.month=Month(systemtime.wMonth); |
