Fix UTC typos in UWP platform
This commit is contained in:
parent
f5d281d55f
commit
9a0e4ea550
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue