diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2019-02-12 21:41:19 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2019-02-13 09:10:26 -0300 |
commit | 4d43aba31eb3545be4c6d952cd5115df2be52d27 (patch) | |
tree | 6215a236f348624f6f356a25789dcec301638a74 /platform/uwp | |
parent | 5aff9903548c0f62d3d6aa880693d9131d2c53ac (diff) |
Fix get_time_zone_info returning inverted bias on Windows/UWP
Diffstat (limited to 'platform/uwp')
-rw-r--r-- | platform/uwp/os_uwp.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index ea4f63b49c..2498e5a7f5 100644 --- a/platform/uwp/os_uwp.cpp +++ b/platform/uwp/os_uwp.cpp @@ -579,7 +579,9 @@ OS::TimeZoneInfo OSUWP::get_time_zone_info() const { ret.name = info.StandardName; } - ret.bias = info.Bias; + // Bias value returned by GetTimeZoneInformation is inverted of what we expect + // For example on GMT-3 GetTimeZoneInformation return a Bias of 180, so invert the value to get -180 + ret.bias = -info.Bias; return ret; } |