timezones-ical-library 1.1.4 → 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/.gitattributes CHANGED
@@ -1,4 +1,4 @@
1
1
  package-lock.json linguist-generated=true -diff
2
- dist/**/* linguist-generated=true -diff
2
+ dist/* linguist-generated=true -diff
3
3
  npm_dist/**/* linguist-generated=true -diff
4
4
  demo_assets/*/*.min.* linguist-generated=true -diff
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 // atcb v1.14.6 //EN
76
+ PRODID:-// github.com/add2cal/add-to-calendar-button //EN
75
77
  CALSCALE:GREGORIAN
76
78
  ```
77
79