mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #56568 from aaronfranke/uwp-utc
This commit is contained in:
commit
a02ce2e676
@ -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…
Reference in New Issue
Block a user