timezones-ical-library 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tzlib.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Add to Calendar TimeZones iCal Library
4
4
  * ++++++++++++++++++++++++++++++++++++++
5
5
  */
6
- const tzlibVersion = '1.2.0';
6
+ const tzlibVersion = '1.2.1';
7
7
  /* Creator: Jens Kuerschner (https://jenskuerschner.de)
8
8
  * Project: https://github.com/add2cal/timezones-ical-library
9
9
  * License: Apache-2.0
@@ -618,7 +618,7 @@ function tzlib_get_ical_block(tzName, jsonType = false) {
618
618
  }
619
619
  // otherwise, create the output
620
620
  const tzBlock = tzlibZonesDB[`${tzName}`].replace(/[^\w_\-:,;=\+\/<br>]/g,'').replace(/<br>/g, '\r\n');
621
- const tzidLine = tzBlock.split('\r\n')[0];
621
+ const tzidLine = tzBlock.split('\r\n')[0].replace(':', '=');
622
622
  const output = ['BEGIN:VTIMEZONE\r\n' + tzBlock + '\r\nEND:VTIMEZONE', tzidLine];
623
623
  // return
624
624
  if (jsonType) {