Skip to content

Commit 6828ae8

Browse files
Merge pull request #2424 from Ren-Roros-Digital/timezoneList
Added timezoneList
2 parents c95d6fd + 1929231 commit 6828ae8

File tree

3 files changed

+348
-1
lines changed

3 files changed

+348
-1
lines changed

src/data/standards.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@
12661266
"helpText": "Sets the default timezone for the tenant. This will be used for all new users and sites.",
12671267
"addedComponent": [
12681268
{
1269-
"type": "input",
1269+
"type": "TimezoneSelect",
12701270
"name": "standards.TenantDefaultTimezone.Timezone",
12711271
"label": "Timezone"
12721272
}

src/data/timezoneList.json

Lines changed: 335 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,335 @@
1+
[
2+
{
3+
"timezone": "(UTC-12:00) International Date Line West"
4+
},
5+
{
6+
"timezone": "(UTC-11:00) Coordinated Universal Time-11"
7+
},
8+
{
9+
"timezone": "(UTC-10:00) Hawaii"
10+
},
11+
{
12+
"timezone": "(UTC-09:00) Alaska"
13+
},
14+
{
15+
"timezone": "(UTC-08:00) Baja California"
16+
},
17+
{
18+
"timezone": "(UTC-08:00) Pacific Time (US and Canada)"
19+
},
20+
{
21+
"timezone": "(UTC-07:00) Arizona"
22+
},
23+
{
24+
"timezone": "(UTC-07:00) Chihuahua, La Paz, Mazatlan"
25+
},
26+
{
27+
"timezone": "(UTC-07:00) Mountain Time (US and Canada)"
28+
},
29+
{
30+
"timezone": "(UTC-06:00) Central America"
31+
},
32+
{
33+
"timezone": "(UTC-06:00) Central Time (US and Canada)"
34+
},
35+
{
36+
"timezone": "(UTC-06:00) Guadalajara, Mexico City, Monterrey"
37+
},
38+
{
39+
"timezone": "(UTC-06:00) Saskatchewan"
40+
},
41+
{
42+
"timezone": "(UTC-05:00) Bogota, Lima, Quito"
43+
},
44+
{
45+
"timezone": "(UTC-05:00) Eastern Time (US and Canada)"
46+
},
47+
{
48+
"timezone": "(UTC-05:00) Indiana (East)"
49+
},
50+
{
51+
"timezone": "(UTC-04:30) Caracas"
52+
},
53+
{
54+
"timezone": "(UTC-04:00) Asuncion"
55+
},
56+
{
57+
"timezone": "(UTC-04:00) Atlantic Time (Canada)"
58+
},
59+
{
60+
"timezone": "(UTC-04:00) Cuiaba"
61+
},
62+
{
63+
"timezone": "(UTC-04:00) Georgetown, La Paz, Manaus, San Juan"
64+
},
65+
{
66+
"timezone": "(UTC-04:00) Santiago"
67+
},
68+
{
69+
"timezone": "(UTC-03:30) Newfoundland"
70+
},
71+
{
72+
"timezone": "(UTC-03:00) Brasilia"
73+
},
74+
{
75+
"timezone": "(UTC-03:00) Buenos Aires"
76+
},
77+
{
78+
"timezone": "(UTC-03:00) Cayenne, Fortaleza"
79+
},
80+
{
81+
"timezone": "(UTC-03:00) Greenland"
82+
},
83+
{
84+
"timezone": "(UTC-03:00) Montevideo"
85+
},
86+
{
87+
"timezone": "(UTC-03:00) Salvador"
88+
},
89+
{
90+
"timezone": "(UTC-02:00) Coordinated Universal Time-02"
91+
},
92+
{
93+
"timezone": "(UTC-02:00) Mid-Atlantic"
94+
},
95+
{
96+
"timezone": "(UTC-01:00) Azores"
97+
},
98+
{
99+
"timezone": "(UTC-01:00) Cabo Verde"
100+
},
101+
{
102+
"timezone": "(UTC) Casablanca"
103+
},
104+
{
105+
"timezone": "(UTC) Coordinated Universal Time"
106+
},
107+
{
108+
"timezone": "(UTC) Dublin, Edinburgh, Lisbon, London"
109+
},
110+
{
111+
"timezone": "(UTC) Monrovia, Reykjavik"
112+
},
113+
{
114+
"timezone": "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"
115+
},
116+
{
117+
"timezone": "(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague"
118+
},
119+
{
120+
"timezone": "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris"
121+
},
122+
{
123+
"timezone": "(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb"
124+
},
125+
{
126+
"timezone": "(UTC+01:00) West Central Africa"
127+
},
128+
{
129+
"timezone": "(UTC+01:00) Windhoek"
130+
},
131+
{
132+
"timezone": "(UTC+02:00) Amman"
133+
},
134+
{
135+
"timezone": "(UTC+02:00) Athens, Bucharest"
136+
},
137+
{
138+
"timezone": "(UTC+02:00) Beirut"
139+
},
140+
{
141+
"timezone": "(UTC+02:00) Cairo"
142+
},
143+
{
144+
"timezone": "(UTC+02:00) Damascus"
145+
},
146+
{
147+
"timezone": "(UTC+02:00) Harare, Pretoria"
148+
},
149+
{
150+
"timezone": "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius"
151+
},
152+
{
153+
"timezone": "(UTC+02:00) Jerusalem"
154+
},
155+
{
156+
"timezone": "(UTC+02:00) Minsk (old)"
157+
},
158+
{
159+
"timezone": "(UTC+02:00) E. Europe"
160+
},
161+
{
162+
"timezone": "(UTC+02:00) Kaliningrad"
163+
},
164+
{
165+
"timezone": "(UTC+03:00) Baghdad"
166+
},
167+
{
168+
"timezone": "(UTC+03:00) Istanbul"
169+
},
170+
{
171+
"timezone": "(UTC+03:00) Kuwait, Riyadh"
172+
},
173+
{
174+
"timezone": "(UTC+03:00) Minsk"
175+
},
176+
{
177+
"timezone": "(UTC+03:00) Moscow, St. Petersburg, Volgograd"
178+
},
179+
{
180+
"timezone": "(UTC+03:00) Nairobi"
181+
},
182+
{
183+
"timezone": "(UTC+03:30) Tehran"
184+
},
185+
{
186+
"timezone": "(UTC+04:00) Abu Dhabi, Muscat"
187+
},
188+
{
189+
"timezone": "(UTC+04:00) Astrakhan, Ulyanovsk"
190+
},
191+
{
192+
"timezone": "(UTC+04:00) Baku"
193+
},
194+
{
195+
"timezone": "(UTC+04:00) Izhevsk, Samara"
196+
},
197+
{
198+
"timezone": "(UTC+04:00) Port Louis"
199+
},
200+
{
201+
"timezone": "(UTC+04:00) Tbilisi"
202+
},
203+
{
204+
"timezone": "(UTC+04:00) Yerevan"
205+
},
206+
{
207+
"timezone": "(UTC+04:30) Kabul"
208+
},
209+
{
210+
"timezone": "(UTC+05:00) Ekaterinburg"
211+
},
212+
{
213+
"timezone": "(UTC+05:00) Islamabad, Karachi"
214+
},
215+
{
216+
"timezone": "(UTC+05:00) Tashkent"
217+
},
218+
{
219+
"timezone": "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi"
220+
},
221+
{
222+
"timezone": "(UTC+05:30) Sri Jayawardenepura"
223+
},
224+
{
225+
"timezone": "(UTC+05:45) Kathmandu"
226+
},
227+
{
228+
"timezone": "(UTC+06:00) Astana"
229+
},
230+
{
231+
"timezone": "(UTC+06:00) Dhaka"
232+
},
233+
{
234+
"timezone": "(UTC+06:00) Omsk"
235+
},
236+
{
237+
"timezone": "(UTC+06:30) Yangon (Rangoon)"
238+
},
239+
{
240+
"timezone": "(UTC+07:00) Bangkok, Hanoi, Jakarta"
241+
},
242+
{
243+
"timezone": "(UTC+07:00) Barnaul, Gorno-Altaysk"
244+
},
245+
{
246+
"timezone": "(UTC+07:00) Krasnoyarsk"
247+
},
248+
{
249+
"timezone": "(UTC+07:00) Novosibirsk"
250+
},
251+
{
252+
"timezone": "(UTC+07:00) Tomsk"
253+
},
254+
{
255+
"timezone": "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi"
256+
},
257+
{
258+
"timezone": "(UTC+08:00) Irkutsk"
259+
},
260+
{
261+
"timezone": "(UTC+08:00) Kuala Lumpur, Singapore"
262+
},
263+
{
264+
"timezone": "(UTC+08:00) Perth"
265+
},
266+
{
267+
"timezone": "(UTC+08:00) Taipei"
268+
},
269+
{
270+
"timezone": "(UTC+08:00) Ulaanbaatar"
271+
},
272+
{
273+
"timezone": "(UTC+09:00) Osaka, Sapporo, Tokyo"
274+
},
275+
{
276+
"timezone": "(UTC+09:00) Seoul"
277+
},
278+
{
279+
"timezone": "(UTC+09:00) Yakutsk"
280+
},
281+
{
282+
"timezone": "(UTC+09:30) Adelaide"
283+
},
284+
{
285+
"timezone": "(UTC+09:30) Darwin"
286+
},
287+
{
288+
"timezone": "(UTC+10:00) Brisbane"
289+
},
290+
{
291+
"timezone": "(UTC+10:00) Canberra, Melbourne, Sydney"
292+
},
293+
{
294+
"timezone": "(UTC+10:00) Guam, Port Moresby"
295+
},
296+
{
297+
"timezone": "(UTC+10:00) Hobart"
298+
},
299+
{
300+
"timezone": "(UTC+10:00) Magadan"
301+
},
302+
{
303+
"timezone": "(UTC+10:00) Vladivostok"
304+
},
305+
{
306+
"timezone": "(UTC+11:00) Chokurdakh"
307+
},
308+
{
309+
"timezone": "(UTC+11:00) Sakhalin"
310+
},
311+
{
312+
"timezone": "(UTC+11:00) Solomon Is., New Caledonia"
313+
},
314+
{
315+
"timezone": "(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky"
316+
},
317+
{
318+
"timezone": "(UTC+12:00) Auckland, Wellington"
319+
},
320+
{
321+
"timezone": "(UTC+12:00) Coordinated Universal Time+12"
322+
},
323+
{
324+
"timezone": "(UTC+12:00) Fiji"
325+
},
326+
{
327+
"timezone": "(UTC+12:00) Petropavlovsk-Kamchatsky - Old"
328+
},
329+
{
330+
"timezone": "(UTC+13:00) Nuku'alofa"
331+
},
332+
{
333+
"timezone": "(UTC+13:00) Samoa"
334+
}
335+
]

src/views/tenant/standards/ListAppliedStandards.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import { CippTable, cellBooleanFormatter } from 'src/components/tables'
3939
import allStandardsList from 'src/data/standards'
4040
import CippCodeOffCanvas from 'src/components/utilities/CippCodeOffcanvas'
4141
import GDAPRoles from 'src/data/GDAPRoles'
42+
import timezoneList from 'src/data/timezoneList'
4243
import Select from 'react-select'
4344
import { cellGenericFormatter } from 'src/components/tables/CellGenericFormat'
4445

@@ -633,6 +634,17 @@ const ApplyNewStandard = () => {
633634
}))}
634635
/>
635636
)}
637+
{component.type === 'TimezoneSelect' && (
638+
<RFFSelectSearch
639+
name={component.name}
640+
className="mb-3"
641+
label={component.label}
642+
values={timezoneList.map((tz) => ({
643+
value: tz.timezone,
644+
name: tz.timezone,
645+
}))}
646+
/>
647+
)}
636648
</>
637649
))}
638650
</CCol>

0 commit comments

Comments
 (0)