summaryrefslogtreecommitdiff
path: root/platform/winrt/os_winrt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/winrt/os_winrt.cpp')
-rw-r--r--platform/winrt/os_winrt.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/winrt/os_winrt.cpp b/platform/winrt/os_winrt.cpp
index a84e54ee0e..24037f05d7 100644
--- a/platform/winrt/os_winrt.cpp
+++ b/platform/winrt/os_winrt.cpp
@@ -469,6 +469,22 @@ OS::Time OSWinrt::get_time(bool utc) const {
return time;
}
+OS::TimeZoneInfo OS_Windows::get_time_zone_info() const {
+ TIME_ZONE_INFORMATION info;
+ bool daylight = false;
+ if (GetTimeZoneInformation(info) == TIME_ZONE_ID_DAYLIGHT)
+ daylight = true;
+
+ if (daylight) {
+ ret.name = info.DaylightName;
+ } else {
+ ret.name = info.StandardName;
+ }
+
+ ret.bias = info.Bias;
+ return ret;
+}
+
uint64_t OSWinrt::get_unix_time(bool utc) const {
FILETIME ft;