From 35533497954b2c6e20a902789fe11e95740c3cf6 Mon Sep 17 00:00:00 2001 From: Philipp Kewisch Date: Fri, 9 Jun 2023 11:15:36 +0200 Subject: [PATCH] Fix timezone parsing in ical.timezones.js [fixes #510] --- tools/scriptutils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scriptutils.js b/tools/scriptutils.js index b7522016..5891898a 100644 --- a/tools/scriptutils.js +++ b/tools/scriptutils.js @@ -104,7 +104,7 @@ async function generateZonesFile(tzdbDir) { let lines = [ `(function() {`, - ` function register(tzdata) { ICAL.TimezoneService.register(ICAL.Component.fromString("BEGIN:VTIMEZONE\\r\\n" + tzdata + "END:VTIMEZONE")) };`, + ` function register(tzdata) { ICAL.TimezoneService.register(ICAL.Component.fromString("BEGIN:VTIMEZONE\\r\\n" + tzdata + "\\r\\nEND:VTIMEZONE")) };`, ` ICAL.TimezoneService.IANA_TZDB_VERSION = "${tzdbVersion}";` ];