From cdc3235c8998f9434e69d7cccd2ad4f949923fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sun, 14 Aug 2022 22:33:51 +0200 Subject: [PATCH] Fix kml-timezone example calculations - The parsed minutes had the wrong sign when the offset is negative. - When calculating the local time, the minutes should be subtracted instead of added - Fix a data error in the kml, a fullstop was used instead of a colon. --- examples/data/kml/timezones.kml | 62 ++++++++++++++++----------------- examples/kml-timezones.js | 39 ++++++++++++++------- 2 files changed, 58 insertions(+), 43 deletions(-) diff --git a/examples/data/kml/timezones.kml b/examples/data/kml/timezones.kml index 9ba605ee8b..6b56199d1e 100644 --- a/examples/data/kml/timezones.kml +++ b/examples/data/kml/timezones.kml @@ -5,38 +5,38 @@ - + - - + + - - + + - - + + - + - + - + - + @@ -44,38 +44,38 @@ - + - - + + - - + + - - + + - + - + - + - + @@ -398,7 +398,7 @@ 1 - + GMT -07:00 @@ -530,7 +530,7 @@ - GMT -03.30 + GMT -03:30