aboutsummaryrefslogtreecommitdiff
path: root/platform/winrt
diff options
context:
space:
mode:
authorest312015-06-06 03:23:34 +0200
committerest312015-06-06 03:23:34 +0200
commit26ea12a873d0e7c1467ee6b52c9559dc5f456bd3 (patch)
tree009ac012ba39a0435d56cbccbd0b6ac8800ae297 /platform/winrt
parent8dde67cf706ae6e6a33eefdf69aa6922fac0e909 (diff)
downloadgodot-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/winrt')
-rw-r--r--platform/winrt/os_winrt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/winrt/os_winrt.cpp b/platform/winrt/os_winrt.cpp
index 21a77b89c..74909c6dd 100644
--- a/platform/winrt/os_winrt.cpp
+++ b/platform/winrt/os_winrt.cpp
@@ -445,7 +445,7 @@ String OSWinrt::get_name() {
OS::Date OSWinrt::get_date() const {
SYSTEMTIME systemtime;
- GetSystemTime(&systemtime);
+ GetLocalTime(&systemtime);
Date date;
date.day=systemtime.wDay;
date.month=Month(systemtime.wMonth);
@@ -457,7 +457,7 @@ OS::Date OSWinrt::get_date() const {
OS::Time OSWinrt::get_time() const {
SYSTEMTIME systemtime;
- GetSystemTime(&systemtime);
+ GetLocalTime(&systemtime);
Time time;
time.hour=systemtime.wHour;