Skip to content

Commit

Permalink
Merge pull request #56568 from aaronfranke/uwp-utc
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Jan 6, 2022
2 parents b008cb8 + 9a0e4ea commit a02ce2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions platform/uwp/os_uwp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit a02ce2e

Please sign in to comment.