summaryrefslogtreecommitdiff
path: root/platform/uwp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-07 00:45:03 +0100
committerGitHub <noreply@github.com>2022-01-07 00:45:03 +0100
commita02ce2e67641692659c0a7ea28fd44c04d482859 (patch)
treeeb35aba7fdadf790793a2c2dc05bdd802f4e87fe /platform/uwp
parentb008cb8df66ef2cc1fa89cac71fe698b631ef98f (diff)
parent9a0e4ea550df506da43624900fcab924fe519f96 (diff)
Merge pull request #56568 from aaronfranke/uwp-utc
Diffstat (limited to 'platform/uwp')
-rw-r--r--platform/uwp/os_uwp.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp
index 728f9a1616..57603c6655 100644
--- a/platform/uwp/os_uwp.cpp
+++ b/platform/uwp/os_uwp.cpp
@@ -443,7 +443,7 @@ String OS_UWP::get_name() const {
OS::Date OS_UWP::get_date(bool p_utc) const {
SYSTEMTIME systemtime;
- if (utc) {
+ if (p_utc) {
GetSystemTime(&systemtime);
} else {
GetLocalTime(&systemtime);
@@ -460,10 +460,11 @@ OS::Date OS_UWP::get_date(bool p_utc) const {
OS::Time OS_UWP::get_time(bool p_utc) const {
SYSTEMTIME systemtime;
- if (utc)
+ if (p_utc) {
GetSystemTime(&systemtime);
- else
+ } else {
GetLocalTime(&systemtime);
+ }
Time time;
time.hour = systemtime.wHour;