1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Fix UTC typos in UWP platform

This commit is contained in:
Aaron Franke
2022-01-06 10:49:41 -08:00
parent f5d281d55f
commit 9a0e4ea550

View File

@@ -443,7 +443,7 @@ String OS_UWP::get_name() const {
OS::Date OS_UWP::get_date(bool p_utc) const { OS::Date OS_UWP::get_date(bool p_utc) const {
SYSTEMTIME systemtime; SYSTEMTIME systemtime;
if (utc) { if (p_utc) {
GetSystemTime(&systemtime); GetSystemTime(&systemtime);
} else { } else {
GetLocalTime(&systemtime); 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 { OS::Time OS_UWP::get_time(bool p_utc) const {
SYSTEMTIME systemtime; SYSTEMTIME systemtime;
if (utc) if (p_utc) {
GetSystemTime(&systemtime); GetSystemTime(&systemtime);
else } else {
GetLocalTime(&systemtime); GetLocalTime(&systemtime);
}
Time time; Time time;
time.hour = systemtime.wHour; time.hour = systemtime.wHour;