-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
277 lines (249 loc) · 39.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="author" content="Add to Calendar">
<meta name="publisher" content="Add to Calendar">
<meta name="keywords" content="calendar, event, node, generator, module, component, icalendar, time zone, iana, olson, vzic, script, javascript, angular, react, vue, outlook, ical, microsoft, teams, apple, google, code, free, open source">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://tz.add-to-calendar-technology.com">
<link rel="icon" type="image/png" sizes="32x32" href="./demo_assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./demo_assets/favicons/favicon-16x16.png">
<link rel="icon" type="image/svg+xml" href="./demo_assets/favicons/favicon.svg">
<link rel="shortcut icon" href="./demo_assets/favicons/favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="./demo_assets/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="./demo_assets/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="./demo_assets/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="./demo_assets/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="./demo_assets/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="./demo_assets/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="./demo_assets/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="./demo_assets/favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="./demo_assets/favicons/apple-touch-icon-180x180.png">
<link rel="mask-icon" href="./demo_assets/favicons/safari-pinned-tab.svg" color="#539eff">
<meta name="msapplication-TileColor" content="#539eff">
<meta name="msapplication-TileImage" content="./demo_assets/favicons/mstile-144x144.png">
<meta name="msapplication-config" content="./browserconfig.xml">
<meta name="mobile-web-app-capable" content="yes">
<link rel="manifest" href="https://tz.add-to-calendar-technology.com/manifest.json" crossOrigin="use-credentials">
<meta name="theme-color" content="#539eff">
<meta name="apple-mobile-web-app-title" content="TimeZones iCal Library">
<meta name="application-name" content="TimeZones iCal Library">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#539eff">
<title>TimeZones iCal Library | Easy access to the official time zones data</title>
<meta name="description" content="The convenient way to directly access the most recent official time zone information for iCalendar files with JavaScript. Free and open source.">
<meta property="og:type" content="website">
<meta property="og:title" content="TimeZones iCal Library | Easy access to the official time zones data">
<meta property="og:site_name" content="Add to Calendar TimeZones iCal Library">
<meta property="og:description" content="The convenient way to directly access the most recent official time zone information for iCalendar files with JavaScript. Free and open source.">
<meta property="og:image" content="https://tz.add-to-calendar-technology.com/demo_assets/img/fb.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="https://tz.add-to-calendar-technology.com">
<meta name="twitter:creator" content="add2calendar">
<meta name="twitter:title" content="TimeZones iCal Library | Easy access to the official time zones data">
<meta name="twitter:description" content="The convenient way to directly access the most recent official time zone information for iCalendar files with JavaScript. Free and open source.">
<meta name="twitter:image" content="https://tz.add-to-calendar-technology.com/demo_assets/img/tw.png">
<link rel="dns-prefetch" href="https://a.add-to-calendar-button.com/">
<link rel="dns-prefetch" href="https://caldn.net/">
<link rel="preload" href="https://tz.add-to-calendar-technology.com/demo_assets/fonts/inter-v12-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="https://tz.add-to-calendar-technology.com/demo_assets/fonts/fira-mono-v14-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
<script async defer data-website-id="df493802-c6d9-49f5-aa67-245f472f5a8e" src="https://a.add-to-calendar-button.com/atcba.js" data-host-url="https://a.add-to-calendar-button.com" data-domains="tz.add-to-calendar-technology.com" data-do-not-track="true"></script>
<!-- load some basic css just for this demo page here -->
<link rel="stylesheet" href="./demo_assets/css/demopage.min.css?v=1.9.1">
</head>
<body>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://tz.add-to-calendar-technology.com",
"image": [
"https://tz.add-to-calendar-technology.com/demo_assets/img/1×1.png",
"https://tz.add-to-calendar-technology.com/demo_assets/img/4×3.png",
"https://tz.add-to-calendar-technology.com/demo_assets/img/16×9.png"
]
}
</script>
<div id="header">
<div id="header-left">
<h1>
<span id="logo">
<svg title="Add to Calendar TimeZones iCal Library" role="img" viewBox="0 0 714.04 263.36" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="F" x2="1" gradientTransform="matrix(-1272.8 1792.1 -1792.1 -1272.8 1433.7 -478.71)" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" offset="0"/><stop stop-color="#fff" offset=".368"/><stop stop-color="#0064ff" offset=".71"/></linearGradient>
<linearGradient id="G" x1="-.187" x2="1" y1="-.128" gradientTransform="matrix(-360.43 707.08 -707.08 -360.43 688.11 608.53)" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" offset="0"/><stop stop-color="#fff" offset=".381"/><stop stop-color="#0064ff" offset=".785"/></linearGradient>
</defs>
<g transform="translate(-53.071 -38.071)"><g transform="matrix(.27718 0 0 .27718 .000133 -.00017)"><g stroke-width="1.3333"><path d="m473.63 190.74c-155.84 0-282.17 126.33-282.17 282.17v614.59h614.59c39.813 0 77.693-8.2706 112.1-23.192 100.11-43.291 170.07-142.94 170.07-258.98v-614.59z" fill="#ffffff" opacity=".5"/><path d="m493.58 244.55c-137.15 0-248.31 111.16-248.31 248.31v193.88l0.068 0.20534c0.476 2.0413 4.2867 16.328 14.353 37.892 41.925 87.08 183.07 292.87 625.06 288.45 88.099-38.096 149.67-125.79 149.67-227.9v-540.84z" fill="url(#F)"/><path d="m884.75 1013.3c-30.273 13.129-63.608 20.409-98.643 20.409h-540.84v-346.95l0.068 0.204c0.47734 2.0413 4.2867 16.327 14.355 37.893 40.477 87.077 183.07 292.87 625.06 288.45" fill="#ffffff"/><path d="m259.69 724.84c42.473 89.661 209.81 327.47 625.06 288.45-244.91 4.288-256.54-153.07-215.12-233.65-224.36 32.956-381.04 6.9653-424.36-92.9 0.476 2.0427 4.2333 16.589 14.423 38.097" fill="url(#G)"/></g><path class="C" d="m933.86 190.74c0 14.751 0.8 32.135 0.8 52.084 0 52.869-5.6867 97.451-15.503 97.451" fill="none" stroke="#4176c7" stroke-opacity=".3" stroke-width="13.333"/><path d="m966.19 343.19c0 18.82-15.256 34.077-34.076 34.077-18.82 0-34.077-15.257-34.077-34.077 0-18.82 15.256-34.076 34.077-34.076 18.821 0 34.076 15.256 34.076 34.076" fill="#ffffff" stroke-width="1.3333"/><path class="C" d="m916.75 190.74c0-28.623 8.8893-45.765 15.361-45.765 9.816 0 17.773 42.859 17.773 95.728s-7.9573 95.729-17.773 95.729" fill="none" stroke="#ffffff" stroke-width="15.245"/></g><path d="m198.3 159.41-0.2288-1.3074-6.596-2.2226c0.15694 0.25496 0.31374 0.50337 0.47721 0.74524a11.865 11.865 0 0 1 1.85 3.7196v0.11761a28.332 28.332 0 0 0-19.435 30.855 1.3074 1.3074 0 0 1-0.51641-1.0394 9.4461 9.4461 0 0 0-0.2092-1.8958 15.689 15.689 0 0 0-0.65361-2.2292 21.821 21.821 0 0 1-0.78455-2.4253 8.4525 8.4525 0 0 1-0.28107-2.0004 6.5371 6.5371 0 0 1 0.12401-1.3532 3.5431 3.5431 0 0 1 0.4968-1.2159 1.0133 1.0133 0 0 0 0.0853-0.3007 6.3018 6.3018 0 0 0 0.0653-1.0525 3.5497 3.5497 0 0 0-0.17-1.0721 6.962 6.962 0 0 0-0.59481-1.3074c-0.33347-0.5818-0.58841-1.059-0.75828-1.412a3.1378 3.1378 0 0 1-0.40534-1.2486c0-2.1573-0.73867-2.6148-1.7651-2.6148a15.689 15.689 0 0 0-2.0264 0.18958 20.213 20.213 0 0 1-2.7456 0.2484 2.9875 2.9875 0 0 1-2.0396-0.94133 9.7665 9.7665 0 0 1-1.5362-2.0004c-0.4772-0.79099-0.84321-1.4316-1.0851-1.9088a3.785 3.785 0 0 1-0.51-1.5101v-1.0263c-0.032-3.6542-0.0653-7.1124 3.4582-9.6619 1.4643-2.0788 2.7783-3.4255 4.3667-4.2884 1.5886-0.86291 3.4843-1.2028 5.962-1.2028a1.3074 1.3074 0 0 1 1.3074 1.3074v1.8631l1.582 0.69293v-0.10454a1.3074 1.3074 0 0 1 1.5624-1.0132 10.852 10.852 0 0 1 1.3074 0.37262 5.6938 5.6938 0 0 1 1.131 0.54911 2.386 2.386 0 0 0 0.82361 0.26148 3.3535 3.3535 0 0 0 1.1963 0 0.96096 0.96096 0 0 0 0.38574-0.1308c0.032-0.19612 0.0587-0.39223 0.0853-0.59487l-1.5624 0.14381a1.3074 1.3074 0 0 1-1.3074-0.75177c-0.5164-1.0852-1.6016-1.6408-2.9744-2.3403-6.9293-3.5366-13.355-0.79753-13.885-2.2749-0.29413-0.82369 0.13067-1.4839 0.70601-2.373 0.57534-0.88906 1.2487-1.9612 1.2487-3.0071a1.3074 1.3074 0 0 1 0.88254-1.242l5.295-2.4187c-0.56867-0.10454-1.3075-0.2288-1.8631-3.079a1.3074 1.3074 0 0 1 0.65374-1.4251s1.4643-0.84982 1.5688-0.90212c0.56228-0.37915 1.2422-0.87597 2.0266-1.4774h0.052a32.372 32.372 0 0 0-7.7726 2.1638 35.568 35.568 0 0 0-5.7918 3.1313 32.241 32.241 0 0 0-4.9814 4.1053 32.457 32.457 0 0 0-4.0987 4.9747 35.431 35.431 0 0 0-3.1378 5.7984l-0.052 0.0719a32.483 32.483 0 0 0-1.9612 6.3083 35.431 35.431 0 0 0 0 13.617c0 0.11774 0.052 0.23535 0.072 0.35301l6.0992 2.9156a1.3074 1.3074 0 0 1 0.74521 1.1375 10.786 10.786 0 0 1-0.87588 4.3537 10.688 10.688 0 0 0-0.77801 3.1705 1.3401 1.3401 0 0 1-0.032 0.36609 33.097 33.097 0 0 0 4.0138 4.8505 32.895 32.895 0 0 0 4.9813 4.0988 35.595 35.595 0 0 0 5.792 3.1378h0.0653a32.287 32.287 0 0 0 6.3018 1.9611 35.085 35.085 0 0 0 4.1771 0.56219 27.639 27.639 0 0 0 1.1636 2.7064 37.536 37.536 0 0 1-5.8834-0.6864 34.869 34.869 0 0 1-6.8181-2.1115h-0.072a38.419 38.419 0 0 1-6.1908-3.4058 35.614 35.614 0 0 1-5.3799-4.4256 35.242 35.242 0 0 1-4.4257-5.38 38.19 38.19 0 0 1-3.3731-6.2168 34.601 34.601 0 0 1-2.1376-6.8574 37.974 37.974 0 0 1 0-14.643 34.3 34.3 0 0 1 2.1114-6.8378 0.32032 0.32032 0 0 1 0-0.0719 38.419 38.419 0 0 1 3.3732-6.2168 35.614 35.614 0 0 1 4.4255-5.3801 35.242 35.242 0 0 1 5.3735-4.4256 37.915 37.915 0 0 1 6.23-3.3732 35.738 35.738 0 0 1 14.231-2.8502 36.98 36.98 0 0 1 7.3412 0.71254 34.915 34.915 0 0 1 6.8052 2.105l0.072 0.0327a38.693 38.693 0 0 1 6.1972 3.3731 35.562 35.562 0 0 1 5.3735 4.4256 35.242 35.242 0 0 1 4.4322 5.38 38.419 38.419 0 0 1 3.3927 6.1972 34.647 34.647 0 0 1 2.1376 6.8836 37.621 37.621 0 0 1 0.68641 5.8834 28.338 28.338 0 0 0-16.598-2.6148zm0.86948 20.461a1.7912 1.7912 0 1 1 3.5758 0v8.8905l6.0402 2.6541a1.7912 1.7912 0 0 1-1.4382 3.2686l-7.0142-3.079a1.7912 1.7912 0 0 1-1.1636-1.68zm16.918-6.9424a1.6343 1.6343 0 0 1 0.0987 0.49029 1.6147 1.6147 0 0 1-1.1178 1.8108l-4.3146 1.3074a1.6147 1.6147 0 0 1-0.98055-3.0724 16.036 16.036 0 1 0-12.963 29.273l0.14386 0.0457c0.41841 0.15035 0.84322 0.2811 1.2682 0.39877a1.1178 1.1178 0 0 1 0.17653 0.0588 16.016 16.016 0 0 0 4.0203 0.5099 1.7781 1.7781 0 0 1 1.1375 0.4053l0.18307-0.1765a1.8631 1.8631 0 0 1 0.87587-0.37262 19.036 19.036 0 0 0 3.2686-0.77791 1.7912 1.7912 0 0 1 1.0394 3.4189 20.344 20.344 0 0 1-3.8242 0.90865 1.8304 1.8304 0 0 1-1.3792-0.39222 1.7781 1.7781 0 0 1-1.3075 0.56219 19.611 19.611 0 1 1 9.25-36.889l-0.21574-0.57527a1.6212 1.6212 0 0 1 3.0267-1.1505l1.6082 4.2099zm2.8044 4.1707a1.7978 1.7978 0 0 0-3.0136 1.9611 16.48 16.48 0 0 1 1.471 2.8567 1.7912 1.7912 0 0 0 3.3274-1.3074 19.101 19.101 0 0 0-1.7847-3.4908zm-5.635 22.514a1.7912 1.7912 0 0 0 2.3403 2.7064 18.958 18.958 0 0 0 2.6934-3.0005 1.7912 1.7912 0 0 0-2.8895-2.1115 15.63 15.63 0 0 1-2.1442 2.4057zm4.7722-8.2106a1.7912 1.7912 0 0 0 3.2684 1.3074 1.7323 1.7323 0 0 0 0.20267-0.50989 20.442 20.442 0 0 0 0.50334-3.883 1.7912 1.7912 0 0 0-3.5758-0.11107 16.604 16.604 0 0 1-0.41841 3.2032z" fill="#000000" opacity=".22" stroke-width=".65371"/><path d="m200.28 156.04-0.2288-1.3074-6.596-2.2226c0.15694 0.25496 0.31374 0.50337 0.47721 0.74524a11.865 11.865 0 0 1 1.85 3.7196v0.11761a28.332 28.332 0 0 0-19.435 30.855 1.3074 1.3074 0 0 1-0.51641-1.0394 9.4461 9.4461 0 0 0-0.2092-1.8958 15.689 15.689 0 0 0-0.65361-2.2292 21.821 21.821 0 0 1-0.78455-2.4253 8.4525 8.4525 0 0 1-0.28107-2.0004 6.5371 6.5371 0 0 1 0.12401-1.3532 3.5431 3.5431 0 0 1 0.4968-1.2159 1.0133 1.0133 0 0 0 0.0853-0.3007 6.3018 6.3018 0 0 0 0.0653-1.0525 3.5497 3.5497 0 0 0-0.17-1.0721 6.962 6.962 0 0 0-0.59481-1.3074c-0.33347-0.5818-0.58841-1.059-0.75828-1.412a3.1378 3.1378 0 0 1-0.40534-1.2486c0-2.1573-0.73867-2.6148-1.7651-2.6148a15.689 15.689 0 0 0-2.0264 0.18958 20.213 20.213 0 0 1-2.7456 0.2484 2.9875 2.9875 0 0 1-2.0396-0.94133 9.7665 9.7665 0 0 1-1.5362-2.0004c-0.4772-0.79099-0.84321-1.4316-1.0851-1.9088a3.785 3.785 0 0 1-0.51-1.5101v-1.0263c-0.032-3.6542-0.0653-7.1124 3.4582-9.6619 1.4643-2.0788 2.7783-3.4255 4.3667-4.2884 1.5886-0.86291 3.4843-1.2028 5.962-1.2028a1.3074 1.3074 0 0 1 1.3074 1.3074v1.8631l1.582 0.69293v-0.10454a1.3074 1.3074 0 0 1 1.5624-1.0132 10.852 10.852 0 0 1 1.3074 0.37262 5.6938 5.6938 0 0 1 1.131 0.54911 2.386 2.386 0 0 0 0.82361 0.26148 3.3535 3.3535 0 0 0 1.1963 0 0.96096 0.96096 0 0 0 0.38574-0.1308c0.032-0.19612 0.0587-0.39223 0.0853-0.59487l-1.5624 0.14381a1.3074 1.3074 0 0 1-1.3074-0.75177c-0.5164-1.0852-1.6016-1.6408-2.9744-2.3403-6.9293-3.5366-13.355-0.79753-13.885-2.2749-0.29413-0.82369 0.13067-1.4839 0.70601-2.373 0.57534-0.88906 1.2487-1.9612 1.2487-3.0071a1.3074 1.3074 0 0 1 0.88254-1.242l5.295-2.4187c-0.56867-0.10454-1.3075-0.2288-1.8631-3.079a1.3074 1.3074 0 0 1 0.65374-1.4251s1.4643-0.84982 1.5688-0.90212c0.56228-0.37915 1.2422-0.87597 2.0266-1.4774h0.052a32.372 32.372 0 0 0-7.7726 2.1638 35.568 35.568 0 0 0-5.7918 3.1313 32.241 32.241 0 0 0-4.9814 4.1053 32.457 32.457 0 0 0-4.0987 4.9747 35.431 35.431 0 0 0-3.1378 5.7984l-0.052 0.0719a32.483 32.483 0 0 0-1.9612 6.3083 35.431 35.431 0 0 0 0 13.617c0 0.11774 0.052 0.23535 0.072 0.35301l6.0992 2.9156a1.3074 1.3074 0 0 1 0.74521 1.1375 10.786 10.786 0 0 1-0.87588 4.3537 10.688 10.688 0 0 0-0.77801 3.1705 1.3401 1.3401 0 0 1-0.032 0.36609 33.097 33.097 0 0 0 4.0138 4.8505 32.895 32.895 0 0 0 4.9813 4.0988 35.595 35.595 0 0 0 5.792 3.1378h0.0653a32.287 32.287 0 0 0 6.3018 1.9611 35.085 35.085 0 0 0 4.1771 0.56219 27.639 27.639 0 0 0 1.1636 2.7064 37.536 37.536 0 0 1-5.8834-0.6864 34.869 34.869 0 0 1-6.8181-2.1115h-0.072a38.419 38.419 0 0 1-6.1908-3.4058 35.614 35.614 0 0 1-5.3799-4.4256 35.242 35.242 0 0 1-4.4257-5.38 38.19 38.19 0 0 1-3.3731-6.2168 34.601 34.601 0 0 1-2.1376-6.8574 37.974 37.974 0 0 1 0-14.643 34.3 34.3 0 0 1 2.1114-6.8378 0.32032 0.32032 0 0 1 0-0.0719 38.419 38.419 0 0 1 3.3732-6.2168 35.614 35.614 0 0 1 4.4255-5.3801 35.242 35.242 0 0 1 5.3735-4.4256 37.915 37.915 0 0 1 6.23-3.3732 35.738 35.738 0 0 1 14.231-2.8502 36.98 36.98 0 0 1 7.3412 0.71254 34.915 34.915 0 0 1 6.8052 2.105l0.072 0.0327a38.693 38.693 0 0 1 6.1972 3.3731 35.562 35.562 0 0 1 5.3735 4.4256 35.242 35.242 0 0 1 4.4322 5.38 38.419 38.419 0 0 1 3.3927 6.1972 34.647 34.647 0 0 1 2.1376 6.8836 37.621 37.621 0 0 1 0.68641 5.8834 28.338 28.338 0 0 0-16.598-2.6148zm0.86948 20.461a1.7912 1.7912 0 1 1 3.5758 0v8.8905l6.0402 2.6541a1.7912 1.7912 0 0 1-1.4382 3.2686l-7.0142-3.079a1.7912 1.7912 0 0 1-1.1636-1.68zm16.918-6.9424a1.6343 1.6343 0 0 1 0.0987 0.49029 1.6147 1.6147 0 0 1-1.1178 1.8108l-4.3146 1.3074a1.6147 1.6147 0 0 1-0.98055-3.0724 16.036 16.036 0 1 0-12.963 29.273l0.14386 0.0457c0.41841 0.15035 0.84322 0.2811 1.2682 0.39877a1.1178 1.1178 0 0 1 0.17653 0.0588 16.016 16.016 0 0 0 4.0203 0.5099 1.7781 1.7781 0 0 1 1.1375 0.4053l0.18307-0.1765a1.8631 1.8631 0 0 1 0.87587-0.37262 19.036 19.036 0 0 0 3.2686-0.77791 1.7912 1.7912 0 0 1 1.0394 3.4189 20.344 20.344 0 0 1-3.8242 0.90865 1.8304 1.8304 0 0 1-1.3792-0.39222 1.7781 1.7781 0 0 1-1.3075 0.56219 19.611 19.611 0 1 1 9.25-36.889l-0.21574-0.57527a1.6212 1.6212 0 0 1 3.0267-1.1505l1.6082 4.2099zm2.8044 4.1707a1.7978 1.7978 0 0 0-3.0136 1.9611 16.48 16.48 0 0 1 1.471 2.8567 1.7912 1.7912 0 0 0 3.3274-1.3074 19.101 19.101 0 0 0-1.7847-3.4908zm-5.635 22.514a1.7912 1.7912 0 0 0 2.3403 2.7064 18.958 18.958 0 0 0 2.6934-3.0005 1.7912 1.7912 0 0 0-2.8895-2.1115 15.63 15.63 0 0 1-2.1442 2.4057zm4.7722-8.2106a1.7912 1.7912 0 0 0 3.2684 1.3074 1.7323 1.7323 0 0 0 0.20267-0.50989 20.442 20.442 0 0 0 0.50334-3.883 1.7912 1.7912 0 0 0-3.5758-0.11107 16.604 16.604 0 0 1-0.41841 3.2032z" fill="#ffffff" stroke-width=".65371"/></g><g transform="translate(-53.071 -38.071)"><g transform="matrix(1.7415 0 0 1.7415 -1405.1 69.047)" fill="#ffffff" style="shape-inside:url(#rect8502);white-space:pre"><path d="m1004.1 29.312h-6.6536v-6.7904h24.199v6.7904h-6.6536v25.293h-10.892z"/><path d="m1025 23.479q0-1.0254 0.4329-1.8913 0.4558-0.86589 1.1849-1.4811 0.7292-0.63802 1.6862-0.97982 0.9571-0.3418 1.9824-0.3418 1.1849 0 2.142 0.43294 0.9798 0.41016 1.6634 1.0938 0.6836 0.66081 1.0482 1.5039 0.3873 0.82031 0.3873 1.6634 0 1.0482-0.4329 1.9141-0.433 0.86589-1.1621 1.5039-0.7292 0.61524-1.6862 0.97982-0.9343 0.3418-1.9597 0.3418-1.1165 0-2.0963-0.36458-0.957-0.36458-1.6634-1.0026-0.7064-0.66081-1.1166-1.5039-0.4101-0.86589-0.4101-1.8685zm14.583 29.896q-2.7571 1.5951-6.1067 1.5951-1.9825 0-3.532-0.66081-1.5494-0.66081-2.6204-1.8685-1.0482-1.2305-1.595-2.9622-0.5469-1.7318-0.5469-3.8509v-14.401h9.8893v13.945q0 1.1165 0.5925 1.6862 0.5924 0.54688 1.5039 0.54688 0.9114 0 1.914-0.54688z"/><path d="m1068.3 36.695q0.9571-2.8939 3.0762-4.3522 2.1191-1.4583 5.4915-1.4583 1.9141 0 3.5319 0.88867 1.6179 0.88867 2.8028 2.4837t1.8457 3.8053 0.6608 4.8763v11.667h-9.8438v-11.667q0-0.97982-0.2278-1.8001-0.2051-0.8431-0.6153-1.4583-0.4101-0.61524-1.0026-0.95703-0.5924-0.3418-1.3444-0.3418-0.9798 0-1.6862 0.45573-0.7063 0.43294-1.1621 1.1165-0.4557 0.66081-0.6836 1.4811-0.2051 0.79753-0.2051 1.5039v11.667h-9.7526v-11.667q0-0.95703-0.2278-1.7773-0.2051-0.8431-0.638-1.4583-0.4102-0.61523-1.0254-0.95703-0.6153-0.36458-1.39-0.36458-0.8431 0-1.5267 0.3418-0.6608 0.3418-1.1393 0.95703-0.4785 0.59245-0.752 1.39-0.2506 0.79753-0.2734 1.6862v11.849h-9.8438v-23.037h9.8438v4.7624q1.2988-2.8939 3.2812-4.1699 2.0052-1.276 4.694-1.276 1.2989 0 2.5066 0.3418 1.2076 0.31901 2.2558 1.0254 1.071 0.70638 1.9141 1.8229 0.8659 1.0938 1.4355 2.6204z"/><path d="m1103.8 48.43q3.1901 0 6.8815-1.6406l1.1393 6.2663q-4.2383 1.9141-9.5248 1.9141-2.9394 0-5.3776-0.88867-2.4153-0.91146-4.1699-2.5065-1.7318-1.6178-2.7116-3.8281-0.957-2.2103-0.957-4.8079 0-2.7344 1.0026-4.9447 1.0254-2.2331 2.7799-3.8053 1.7546-1.5951 4.1016-2.4382 2.347-0.86589 5.013-0.86589 2.6888 0 4.7168 0.91146 2.028 0.88867 3.3724 2.4609 1.3672 1.5495 2.028 3.6458 0.6836 2.0736 0.6836 4.4434 0 0.31901-0.023 0.61524t-0.068 0.56966l-13.991 1.8229q0.5469 1.6406 1.8229 2.3698 1.276 0.70638 3.2813 0.70638zm1.7317-8.9551q-0.7975-2.9167-3.5547-2.9167-0.8659 0-1.5494 0.3418-0.6836 0.3418-1.1622 0.95703-0.4557 0.59245-0.7063 1.4355-0.2507 0.82031-0.2735 1.7773z"/><path d="m1115.2 47.86 10.983-18.548h-10.527v-6.7904h20.964v6.7904l-10.71 18.548h11.188v6.7448h-21.898z"/><path d="m1148.5 42.893q0 1.276 0.3646 2.2331 0.3873 0.95703 1.0026 1.5951 0.6152 0.63802 1.4127 0.95703 0.7976 0.31901 1.6179 0.31901t1.595-0.31901q0.7975-0.31901 1.4128-0.95703 0.638-0.63802 1.0026-1.5951 0.3874-0.95703 0.3874-2.2331 0-1.276-0.3874-2.2331-0.3646-0.95703-1.0026-1.5723-0.6153-0.63802-1.4128-0.95703-0.7747-0.31901-1.595-0.31901t-1.6179 0.31901q-0.7975 0.31901-1.4127 0.95703-0.6153 0.61523-1.0026 1.5723-0.3646 0.95703-0.3646 2.2331zm-9.1146 0q0.1139-2.9395 1.2077-5.1725 1.1165-2.2331 2.9394-3.7598t4.2155-2.3014q2.4154-0.77474 5.127-0.77474 2.9622 0 5.4232 0.88867 2.4609 0.88867 4.2382 2.4837 1.7774 1.5723 2.7572 3.7826t0.9798 4.8535q0 2.1419-0.5696 3.8737-0.5469 1.7318-1.5039 3.0762-0.9571 1.3216-2.2559 2.3014t-2.8027 1.6178q-1.5039 0.61524-3.1218 0.91146-1.595 0.29622-3.1901 0.29622-3.0078 0-5.4915-0.86589-2.461-0.88867-4.2383-2.4837-1.7774-1.5951-2.7572-3.8053-0.957-2.2331-0.957-4.9219z"/><path d="m1169.8 31.568h9.3881v4.7624q1.3672-2.7572 3.5091-4.1016 2.1647-1.3444 5.0586-1.3444 2.3242 0 4.1015 0.86589 1.7774 0.86589 2.9851 2.4609 1.2304 1.5723 1.8457 3.8053 0.638 2.2103 0.638 4.9219v11.667h-9.7982v-12.624q0-0.91146-0.1823-1.6862-0.1595-0.77474-0.5469-1.3216-0.3645-0.56966-0.9342-0.86589-0.5697-0.31901-1.39-0.31901-1.0026 0-1.8457 0.5013-0.8431 0.47852-1.4811 1.1849-0.6152 0.70638-1.0026 1.4811-0.3874 0.75195-0.5013 1.2988v12.35h-9.8438z"/><path d="m1215.5 48.43q3.1901 0 6.8815-1.6406l1.1393 6.2663q-4.2383 1.9141-9.5248 1.9141-2.9394 0-5.3776-0.88867-2.4153-0.91146-4.1699-2.5065-1.7318-1.6178-2.7116-3.8281-0.957-2.2103-0.957-4.8079 0-2.7344 1.0026-4.9447 1.0254-2.2331 2.7799-3.8053 1.7546-1.5951 4.1016-2.4382 2.347-0.86589 5.013-0.86589 2.6888 0 4.7168 0.91146 2.028 0.88867 3.3724 2.4609 1.3672 1.5495 2.028 3.6458 0.6836 2.0736 0.6836 4.4434 0 0.31901-0.023 0.61524t-0.068 0.56966l-13.991 1.8229q0.5469 1.6406 1.8229 2.3698 1.276 0.70638 3.2813 0.70638zm1.7317-8.9551q-0.7975-2.9167-3.5547-2.9167-0.8658 0-1.5494 0.3418t-1.1622 0.95703q-0.4557 0.59245-0.7063 1.4355-0.2507 0.82031-0.2735 1.7773z"/><path d="m1237.9 36.695q-2.7799 0-2.7799 0.95703 0 0.36458 0.205 0.66081 0.2051 0.27344 0.5469 0.5013 0.3418 0.20508 0.752 0.3418 0.4101 0.13672 0.8203 0.18229 1.8001 0.27344 3.3268 0.8431 1.5495 0.54688 2.666 1.4811 1.1393 0.93425 1.7774 2.3014 0.6608 1.3444 0.6608 3.2129 0 1.8457-0.6608 3.304-0.6381 1.4355-1.8002 2.4382t-2.7343 1.5267q-1.5723 0.52409-3.418 0.52409-2.985 0-5.4688-0.27344-2.4609-0.27344-4.5117-1.1849l1.0482-5.3776q0.7519 0.20508 1.2988 0.36458 0.5697 0.15951 0.9343 0.22786 0.3418 0.06836 0.8659 0.18229 0.524 0.09115 1.1165 0.18229 0.6152 0.09115 1.2305 0.1595 0.6152 0.06836 1.1165 0.06836 2.3242 0 2.3242-1.0938-0.068-0.43294-0.3646-0.75195-0.2734-0.3418-0.7063-0.56966-0.433-0.25065-1.0027-0.41016-0.5468-0.15951-1.1621-0.27344-1.7773-0.3418-3.1445-0.91146-1.3444-0.56966-2.2559-1.4583-0.9114-0.91146-1.3899-2.2103-0.4558-1.3216-0.4558-3.1217 0.091-2.0508 0.8659-3.4863 0.7748-1.4583 2.0964-2.3698 1.3216-0.93424 3.0989-1.3444 1.8002-0.43294 3.9193-0.43294 2.2103 0 4.1699 0.25065 1.9597 0.22786 3.6687 1.0482l-1.0026 5.5599q-3.418-1.0482-5.6511-1.0482z"/><path d="m997.89 69.654q0-0.91797 0.38759-1.6931 0.40798-0.77517 1.0608-1.326 0.65278-0.57118 1.5095-0.87717 0.8568-0.30599 1.7748-0.30599 1.0607 0 1.9175 0.38759 0.8772 0.36719 1.4892 0.97917 0.6119 0.59158 0.9383 1.3464 0.3468 0.73438 0.3468 1.4892 0 0.93837-0.3876 1.7135-0.3875 0.77517-1.0403 1.3464-0.6528 0.55078-1.5096 0.87717-0.8363 0.30599-1.7543 0.30599-0.9996 0-1.8768-0.32639-0.85673-0.32639-1.4891-0.89757-0.63238-0.59158-0.99957-1.3464-0.36719-0.77517-0.36719-1.6727zm13.056 26.764q-2.4683 1.428-5.467 1.428-1.7748 0-3.1619-0.59158-1.3872-0.59158-2.3459-1.6727-0.93837-1.1016-1.428-2.6519-0.48958-1.5503-0.48958-3.4475v-12.892h8.8533v12.484q0 0.99957 0.5304 1.5095 0.5304 0.48958 1.3464 0.48958 0.8159 0 1.7135-0.48958z"/><path d="m1028.6 90.625q0.714 0 1.326-0.0612 0.6119-0.0816 1.2035-0.22439 0.612-0.1428 1.2444-0.36719 0.6324-0.22439 1.4075-0.53038l1.1424 6.6298q-3.6311 2.1011-7.9149 2.1011-6.0586 0-10.383-4.0799-4.5286-4.2431-4.5898-10.954 0-3.2639 1.1219-6.0178 1.122-2.7539 3.1007-4.7326 1.9788-1.9991 4.6715-3.1007 2.6927-1.122 5.8342-1.122 4.4674 0 8.1189 2.0807l-1.1016 6.487q-2.9987-1.1424-5.4262-1.1424-3.4067 0-5.1814 1.9787-1.7543 1.9583-1.7543 5.5282 0 1.7747 0.4691 3.1823 0.4896 1.3872 1.4076 2.3663 0.918 0.95877 2.2439 1.4688 1.3464 0.50998 3.0599 0.50998z"/><path d="m1053.8 93.644q-0.9792 2.0399-2.6519 3.1211-1.6728 1.0812-4.2023 1.0812-2.0399 0-3.8963-0.81597-1.8563-0.83637-3.2639-2.2847-1.4075-1.4688-2.2439-3.4679t-0.8364-4.3451q0-2.3255 0.8364-4.2839 0.8568-1.9583 2.2643-3.3659 1.428-1.428 3.2639-2.2031 1.8564-0.79557 3.8759-0.79557 1.0404 0 2.0399 0.28559 1.02 0.26519 1.9176 0.87717 0.9179 0.59158 1.6523 1.5095 0.7548 0.91797 1.2444 2.2031v-4.8754h8.7717v21.236h-8.7717zm0-6.7318q-0.041-0.81597-0.3876-1.5503-0.3468-0.73438-0.918-1.2648-0.5508-0.55078-1.2851-0.85677-0.7344-0.32639-1.53-0.32639-0.8976 0-1.6727 0.34679-0.7548 0.32639-1.326 0.89757-0.5508 0.55078-0.8772 1.3056-0.3263 0.75478-0.3263 1.6115 0 0.89757 0.3467 1.6727 0.3468 0.75478 0.918 1.3056 0.5916 0.55078 1.3464 0.87717 0.7547 0.30599 1.5911 0.30599 0.8568 0 1.5912-0.32639 0.7343-0.32639 1.2851-0.87717 0.5508-0.55078 0.8772-1.2648 0.3264-0.73438 0.3672-1.5299z"/><path d="m1080.4 96.418q-2.8355 1.428-6.283 1.428-1.7748 0-3.1619-0.57118-1.3872-0.59158-2.3459-1.6727-0.9384-1.1016-1.428-2.6315-0.4896-1.5503-0.4896-3.4883v-19.502l8.8125-1.3056v20.195q0 1.122 0.714 1.6727 0.714 0.53038 1.938 0.53038 0.9383 0 1.9175-0.48958z"/><path d="m1091 68.798h9.0165v22.562h9.9549v6.1606h-18.971z"/><path d="m1112.6 69.654q0-0.91797 0.3876-1.6931 0.408-0.77517 1.0608-1.326 0.6527-0.57118 1.5095-0.87717t1.7747-0.30599q1.0608 0 1.9176 0.38759 0.8772 0.36719 1.4891 0.97917 0.612 0.59158 0.9384 1.3464 0.3468 0.73438 0.3468 1.4892 0 0.93837-0.3876 1.7135t-1.0404 1.3464q-0.6527 0.55078-1.5095 0.87717-0.8364 0.30599-1.7544 0.30599-0.9995 0-1.8767-0.32639-0.8568-0.32639-1.4891-0.89757-0.6324-0.59158-0.9996-1.3464-0.3672-0.77517-0.3672-1.6727zm13.056 26.764q-2.4684 1.428-5.4671 1.428-1.7747 0-3.1618-0.59158-1.3872-0.59158-2.346-1.6727-0.9383-1.1016-1.4279-2.6519-0.4896-1.5503-0.4896-3.4475v-12.892h8.8533v12.484q0 0.99957 0.5304 1.5095 0.5304 0.48958 1.3463 0.48958 0.816 0 1.7136-0.48958z"/><path d="m1143.9 97.846q-4.8143 0-6.8134-4.2023v3.8759h-8.8533v-27.539l8.8533-1.3056v11.832q1.0607-2.2643 2.7335-3.2435 1.6931-0.97917 4.0391-0.97917 2.1215 0 3.9778 0.81597 1.8768 0.81597 3.2639 2.2643 1.3872 1.4484 2.1827 3.4271 0.816 1.9583 0.816 4.2839 0 2.3255-0.8364 4.3043-0.8363 1.9583-2.2439 3.4067-1.4075 1.428-3.2639 2.2439-1.8359 0.81597-3.8554 0.81597zm-6.8134-10.771q0 0.89757 0.3264 1.6523t0.8975 1.326q0.5712 0.55078 1.3056 0.87717 0.7548 0.30599 1.5911 0.30599 0.8772 0 1.632-0.34679 0.7752-0.34679 1.3259-0.91797 0.5712-0.57118 0.8772-1.326 0.3264-0.75478 0.3264-1.5707 0-0.89757-0.3468-1.6523-0.3264-0.77517-0.8976-1.326-0.5711-0.55078-1.3259-0.85677-0.7548-0.32639-1.5912-0.32639-0.8567 0-1.6115 0.32639-0.7344 0.30599-1.2852 0.85677-0.5507 0.55078-0.8771 1.2852-0.3264 0.71398-0.3468 1.5299z"/><path d="m1157.2 76.896h8.8125v4.2635q0.9996-2.5295 2.6519-3.6923 1.6728-1.1832 3.8351-1.1832l1.224 6.8338q-3.9779 0-5.8547 0.85677-1.8563 0.83637-1.8563 2.6927v10.852h-8.8125z"/><path d="m1191.9 93.644q-0.9791 2.0399-2.6519 3.1211-1.6727 1.0812-4.2022 1.0812-2.04 0-3.8963-0.81597-1.8563-0.83637-3.2639-2.2847-1.4075-1.4688-2.2439-3.4679t-0.8364-4.3451q0-2.3255 0.8364-4.2839 0.8568-1.9583 2.2643-3.3659 1.428-1.428 3.2639-2.2031 1.8563-0.79557 3.8759-0.79557 1.0403 0 2.0399 0.28559 1.02 0.26519 1.9175 0.87717 0.918 0.59158 1.6524 1.5095 0.7548 0.91797 1.2443 2.2031v-4.8754h8.7717v21.236h-8.7717zm0-6.7318q-0.041-0.81597-0.3875-1.5503-0.3468-0.73438-0.918-1.2648-0.5508-0.55078-1.2852-0.85677-0.7343-0.32639-1.5299-0.32639-0.8976 0-1.6728 0.34679-0.7547 0.32639-1.3259 0.89757-0.5508 0.55078-0.8772 1.3056-0.3264 0.75478-0.3264 1.6115 0 0.89757 0.3468 1.6727 0.3468 0.75478 0.918 1.3056 0.5916 0.55078 1.3463 0.87717 0.7548 0.30599 1.5912 0.30599 0.8567 0 1.5911-0.32639t1.2852-0.87717q0.5508-0.55078 0.8772-1.2648 0.3263-0.73438 0.3671-1.5299z"/><path d="m1204.9 76.896h8.8125v4.2635q0.9996-2.5295 2.6519-3.6923 1.6728-1.1832 3.8351-1.1832l1.224 6.8338q-3.9779 0-5.8546 0.85677-1.8564 0.83637-1.8564 2.6927v10.852h-8.8125z"/><path d="m1238.9 94.052q-1.938 3.4679-6.0382 3.4679-1.8768 0-3.5699-0.65278-1.6932-0.67318-2.9783-1.8563-1.2852-1.1832-2.0399-2.7947-0.7548-1.6319-0.7548-3.5495v-12.076h8.7717v11.668q0 0.61198 0.2448 1.1628 0.2652 0.53038 0.6528 0.93837 0.4079 0.40799 0.9179 0.65278 0.51 0.22439 1.0404 0.22439 0.7548 0 1.3667-0.26519 0.6324-0.28559 1.0608-0.75478 0.4488-0.48958 0.6732-1.122 0.2448-0.65278 0.2448-1.4076v-11.097h8.8125v15.626q0 3.6719-0.7752 6.487-0.7548 2.8151-2.2439 4.7122-1.4892 1.9175-3.6719 2.8967-2.1827 0.99957-5.0182 0.99957-0.6528 0-1.5504-0.102-0.8975-0.10199-2.0807-0.30599l0.8976-6.8542q0.5508 0.1428 1.0607 0.1836 0.51 0.0612 0.9996 0.0612 1.1832 0 1.8971-0.57118 0.7344-0.55078 1.1628-1.4484 0.4284-0.87717 0.612-1.9787 0.204-1.122 0.306-2.2439z"/></g></g>
</svg>
</span>
</h1>
<h2>The convenient way to directly access the most recent official time zone information for iCalendar files with JavaScript.</h2>
</div>
<div id="header-right">
<a target="_blank" rel="noopener" href="https://github.com/add2cal/timezones-ical-library" class="github">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="50px" width="50px">
<path d="M256 0C115.39 0 0 115.39 0 256c0 119.988 84.195 228.984 196 256v-84.695c-11.078 2.426-21.273 2.496-32.55-.828-15.13-4.465-27.422-14.543-36.547-29.9-5.816-9.812-16.125-20.453-26.88-19.672l-2.637-29.883c23.254-1.992 43.37 14.168 55.313 34.23 5.305 8.922 11.4 14.152 19.246 16.465 7.574 2.23 15.707 1.16 25.184-2.187 2.38-18.973 11.07-26.074 17.637-36.074v-.016c-66.68-9.945-93.254-45.32-103.8-73.242-13.977-37.074-6.477-83.39 18.238-112.66.48-.57 1.348-2.062 1.012-3.105-11.332-34.23 2.477-62.547 2.984-65.55 13.078 3.867 15.203-3.89 56.81 21.387l7.19 4.32c3.008 1.793 2.063.77 5.07.543 17.37-4.72 35.684-7.324 53.727-7.56 18.18.234 36.375 2.84 54.465 7.75l2.328.234c-.203-.03.633-.148 2.035-.984 51.973-31.48 50.105-21.19 64.043-25.723.504 3.008 14.13 31.785 2.918 65.582-1.512 4.656 45.06 47.3 19.246 115.754-10.547 27.934-37.117 63.31-103.797 73.254v.016c8.547 13.027 18.816 19.957 18.762 46.832V512c111.81-27.016 196-136.012 196-256C512 115.39 396.61 0 256 0zm0 0"/>
</svg>
<br>
Get the Code!
</a>
</div>
</div>
<button id="light-mode-switch-header" class="light-mode-switch" aria-label="Light/Dark Mode Switch">
<div></div>
</button>
<div class="container">
<h3>iCal Time zone information for JavaScript</h3>
<p class="description">
This tool converts the most recent IANA (formerly Olson) time zone database files into VTIMEZONE blocks, which are compatible with the iCalendar specification (RFC2445).<br>
It is optimized to be easily used in every JavaScript project; may it be VanillaJS, React, Angular, Vue, Svelte, or based on any other framework or library.
</p>
<h3>Give it a try!</h3>
</div>
<div class="example">
<div id="tz-input-wrapper">
<svg class="arrow" xmlns="http://www.w3.org/2000/svg" width="115" height="45">
<g fill="none" stroke-width="2.5" stroke-linecap="round" stroke-miterlimit="10"><path d="M108.519 35.397c-9.013 8.839-24.133 9.449-34.974 3.485-4.474-2.461-10.037-7.56-8.195-13.4.818-2.596 4.623-7.007 7.465-3.78 3.573 4.061-3.756 11.358-6.245 13.396-6.997 5.731-16.648 7.996-25.507 6.503-20.278-3.415-29.921-23.09-37.544-39.87"/><path stroke-linejoin="round" d="M109.988 43.269c-.98-4.277 1.606-7.742 1.49-11.938-2.883 1.396-8.855 3.965-12.196 3.507"/></g>
</svg>
<div id="autocomplete" class="autocomplete">
<input class="autocomplete-input" id="tz-input" onClick="this.select();" placeholder="Search for a time zone..." aria-label="Search for a time zone...">
<ul class="autocomplete-result-list"></ul>
<ul id="tz-no-results" class="autocomplete-result-list" visible="false">
<li class="autocomplete-result no-result">No results found.</li>
</ul>
</div>
</div>
<div id="tz-output-wrapper">
<pre><code id="tz-output">Please select a time zone above...</code></pre>
<pre><code id="tz-offset-output">Please select a time zone above...</code></pre>
</div>
</div>
<div class="container">
<a target="_blank" href="https://github.com/add2cal/timezones-ical-library" class="github">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="50px" width="50px"><path d="M256 0C115.39 0 0 115.39 0 256c0 119.988 84.195 228.984 196 256v-84.695c-11.078 2.426-21.273 2.496-32.55-.828-15.13-4.465-27.422-14.543-36.547-29.9-5.816-9.812-16.125-20.453-26.88-19.672l-2.637-29.883c23.254-1.992 43.37 14.168 55.313 34.23 5.305 8.922 11.4 14.152 19.246 16.465 7.574 2.23 15.707 1.16 25.184-2.187 2.38-18.973 11.07-26.074 17.637-36.074v-.016c-66.68-9.945-93.254-45.32-103.8-73.242-13.977-37.074-6.477-83.39 18.238-112.66.48-.57 1.348-2.062 1.012-3.105-11.332-34.23 2.477-62.547 2.984-65.55 13.078 3.867 15.203-3.89 56.81 21.387l7.19 4.32c3.008 1.793 2.063.77 5.07.543 17.37-4.72 35.684-7.324 53.727-7.56 18.18.234 36.375 2.84 54.465 7.75l2.328.234c-.203-.03.633-.148 2.035-.984 51.973-31.48 50.105-21.19 64.043-25.723.504 3.008 14.13 31.785 2.918 65.582-1.512 4.656 45.06 47.3 19.246 115.754-10.547 27.934-37.117 63.31-103.797 73.254v.016c8.547 13.027 18.816 19.957 18.762 46.832V512c111.81-27.016 196-136.012 196-256C512 115.39 396.61 0 256 0zm0 0"/></svg><br>
Get the Code!
</a>
<hr>
<h3>📦 How to install</h3>
<p>
Simply install the package via npm:
</p>
<pre><code>npm install timezones-ical-library</code></pre>
<p>
... and import it for commonJS approaches with:
</p>
<pre><code></code>const tzLib = require('timezones-ical-library');</code></pre>
<p>
... or (preferred) with ES support:
</p>
<pre><code>import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'timezones-ical-library';</code></pre>
<hr>
<h3>⚙️ How to use</h3>
<h4>Get time zones</h4>
<p>
Use `tzlib_get_timezones()` to retrieve a list of all available time zone strings. You can pass `true` to retrieve a JSON formatted string instead of an array.
</p>
<h4>Get the iCal time zone block</h4>
<p>
Use the `tzlib_get_ical_block(tzName)` function to return the proper iCal VTIMEZONE block for a given time zone string (tzName). Again, pass `true` to retrieve a JSON formatted string instead of an array (not recommended).<br>
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.<br>
Include this into your further iCal data to come up with a complete ics file.<br>
A final constellation could look like this:
</p>
<pre><code>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-// github.com/add2cal/add-to-calendar-button //EN
CALSCALE:GREGORIAN
<strong>BEGIN:VTIMEZONE
TZID:America/New_York
LAST-MODIFIED:20220824T133813Z
X-LIC-LOCATION:America/New_York
BEGIN:DAYLIGHT
TZNAME:EDT
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:EST
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE</strong>
BEGIN:VEVENT
UID:2022-08-30T19:29:38.618Z@add-to-calendar-button
DTSTAMP:20230214T091500Z
DTSTART<strong>;TZID=America/New_York</strong>:20230214T091500
DTEND<strong>;TZID=America/New_York</strong>:20230218T223000
SUMMARY:A sample event
DESCRIPTION:Just some descriptive text...
LOCATION:World Wide Web
STATUS:CONFIRMED
LAST-MODIFIED:20220830T192938Z
SEQUENCE:0
END:VEVENT
END:VCALENDAR</code></pre>
<h4>Get a specific offset</h4>
<p>
Use `tzlib_get_offset(tzName, isoDate, isoTime)` to get specific offset (relative to UTC), based on a provided date and time.<br>
For example, you can provide <b>tzName</b> 'Europe/Berlin', <b>isoDate</b> '2023-05-23', and <b>isoTime</b> '15:45' in order to retrieve the offset, which applies for this time zone at the 23rd of May in 2023 at exactly 15:45.
</p>
<hr>
<h3>⚙️ Use it via API</h3>
<p>
Alternatively to the installation, you can make use of the public API.
</p>
<h4>Get time zones via API</h4>
<p>
Get them directly via <a target="_blank" rel="noopener" href="https://tz.add-to-calendar-technology.com/api/zones.json">https://tz.add-to-calendar-technology.com/api/zones.json</a>.
</p>
<h4>Get the iCal time zone block via API</h4>
<p>
Once you have a valid zone name ready, you can get the ics part directly via the following URL scheme:
</p>
<pre><code>https://tz.add-to-calendar-technology.com/api/%zoneName%.ics</code></pre>
<p>
With %zoneName% being your time zone.<br>
So, for New York, this would be https://tz.add-to-calendar-technology.com/api/<strong>America/New_York</strong>.ics.<br>
<strong>This is case sensitive!</strong>
</p>
<p>
(Mind that this does not deliver a fully valid ics file, since it only contains the VTIMEZONE part. You will need to combine this with your other event information.)
</p>
<hr>
<h3>Background story</h3>
<p>
Time zones are a tricky thing. Especially because they do not follow any logical rules, but are rather randomly made up by politicians (and other people). This makes life hard for any software developer dealing with time.
</p>
<p>Working on the <a target="_blank" rel="noopener" href="https://github.com/add2cal/add-to-calendar-button">Add to Calendar Button project</a>, I was facing the same issue.<br>
Generating iCal/ics files strictly requires time zone information - at least if you start dealing with recurring events. This time zone information needs to be more or less manually inserted. I started searching for some kind of official database or API.<br>
There were a lot of libraries, which are quite big in terms of functionality and also size. Most of this is dangerous overhead, when you only need time zone information. No API, of course. Basically, nothing of any use to me.<br>
The official database, on the other hand, is not directly accessible - especially not via JavaScript.
</p>
<p>
That's why I came up with this open source repository, pulling the latest official data, making it usable via JavaScript, and offering the most essential data, while stripping out all the rest - for best performance and bundle size.
</p>
<hr>
<div id="legal">
<button id="light-mode-switch-footer" class="light-mode-switch" aria-label="Light/Dark Mode Switch">
<div></div>
</button>
<p>
This page has been built and is maintained by the team behind the "Add to Calendar Button". See <a target="_blank" rel="noopener" href="https://add-to-calendar-button.com/legal-notice">add-to-calendar-button.com/legal-notice</a> for a full legal notice.<br>
This page is hosted via "GitHub Pages". It includes some very basic analytics, that still preserves your anonymity and does not use any cookies. However, mind that the GitHub privacy policy applies additionally (<a target="_blank" rel="noopener" href="https://docs.github.com/en/github/site-policy/github-privacy-statement">click here for details</a>).
</p>
</div>
<div id="tiny-version">v1.9.1</div>
</div>
<!-- js stuff -->
<script type="application/javascript" src="./dist/tzlib.js?v=1.9.1"></script>
<script type="application/javascript" src="./demo_assets/js/autocomplete.min.js"></script>
<script type="application/javascript" src="./demo_assets/js/demopage.min.js?v=1.9.1"></script>
</body>
</html>