diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2021-10-29 15:49:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 15:49:22 +0200 |
commit | 82f88f5d563f3c3c89e2644986222a55c999f659 (patch) | |
tree | 338e723ce710027f8bc1131836a513024feb63d3 /platform/uwp/os_uwp.cpp | |
parent | b71270e6eaed5f86f5b44a9238b86d9b6a606b76 (diff) | |
parent | 2dabdda36a511e5d1003205ceef1df0dfd401325 (diff) |
Merge pull request #54340 from aaronfranke/time-doc
Update and fix Time documentation
Diffstat (limited to 'platform/uwp/os_uwp.cpp')
-rw-r--r-- | platform/uwp/os_uwp.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index daf3c14f3b..1a84f5da38 100644 --- a/platform/uwp/os_uwp.cpp +++ b/platform/uwp/os_uwp.cpp @@ -441,12 +441,13 @@ String OS_UWP::get_name() const { return "UWP"; } -OS::Date OS_UWP::get_date(bool utc) const { +OS::Date OS_UWP::get_date(bool p_utc) const { SYSTEMTIME systemtime; - if (utc) + if (utc) { GetSystemTime(&systemtime); - else + } else { GetLocalTime(&systemtime); + } Date date; date.day = systemtime.wDay; @@ -457,7 +458,7 @@ OS::Date OS_UWP::get_date(bool utc) const { return date; } -OS::Time OS_UWP::get_time(bool utc) const { +OS::Time OS_UWP::get_time(bool p_utc) const { SYSTEMTIME systemtime; if (utc) GetSystemTime(&systemtime); |