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 +2 -2
- package/dist/tzlib.min.js +1 -1
- package/dist/tzlib.min.js.map +1 -1
- package/npm_dist/cjs/index.js +2 -2
- package/npm_dist/mjs/index.js +2 -2
- package/package.json +1 -1
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.
|
|
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) {
|