timezones-ical-library 1.1.3 → 1.2.0
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/.gitattributes +1 -1
- package/Readme.md +4 -2
- package/dist/tzlib.js +605 -606
- package/dist/tzlib.min.js +1 -1
- package/dist/tzlib.min.js.map +1 -1
- package/index.d.ts +2 -1
- package/npm_dist/cjs/index.js +605 -606
- package/npm_dist/mjs/index.js +605 -606
- package/package.json +2 -2
package/.gitattributes
CHANGED
package/Readme.md
CHANGED
|
@@ -62,7 +62,9 @@ Use `tzlib_get_timezones()` to retrieve a list of all available timezone strings
|
|
|
62
62
|
|
|
63
63
|
#### B. Get the iCal timezone block
|
|
64
64
|
|
|
65
|
-
Use the `tzlib_get_ical_block(tzName)` function to return the proper iCal VTIMEZONE block for a given timezone string (tzName).
|
|
65
|
+
Use the `tzlib_get_ical_block(tzName)` function to return the proper iCal VTIMEZONE block for a given timezone string (tzName). Again, pass `true` to retrieve a JSON formatted string instead of an array (not recommended).
|
|
66
|
+
|
|
67
|
+
You will receive an array, holding the VTIMEZONE block first, and the TZID line (additionally) second. The latter one is needed for any further time statement.
|
|
66
68
|
|
|
67
69
|
Include this into your further iCal data to come up with a complete ics file.
|
|
68
70
|
|
|
@@ -71,7 +73,7 @@ A final constellation could look like this:
|
|
|
71
73
|
```
|
|
72
74
|
BEGIN:VCALENDAR
|
|
73
75
|
VERSION:2.0
|
|
74
|
-
PRODID:-// github.com/add2cal/add-to-calendar-button //
|
|
76
|
+
PRODID:-// github.com/add2cal/add-to-calendar-button //EN
|
|
75
77
|
CALSCALE:GREGORIAN
|
|
76
78
|
```
|
|
77
79
|
|