orc-shared 5.10.0-dev.20 → 5.10.0-dev.21

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.
@@ -5,6 +5,10 @@
5
5
  "orc-shared.allRightsReserved": "All rights reserved.",
6
6
  "orc-shared.appSelectorTitle": "Orckestra Commerce Cloud Applications List",
7
7
  "orc-shared.applyChanges": "Apply Changes",
8
+ "orc-shared.april": "April",
9
+ "orc-shared.aprilShort": "Apr",
10
+ "orc-shared.august": "August",
11
+ "orc-shared.augustShort": "Aug",
8
12
  "orc-shared.back": "Back",
9
13
  "orc-shared.cancel": "Cancel",
10
14
  "orc-shared.ccDescription": "The API-first commerce platform that makes omnichannel retail work.",
@@ -23,6 +27,8 @@
23
27
  "orc-shared.dataTypeInteger": "Whole Number",
24
28
  "orc-shared.dataTypeLookup": "Lookup List",
25
29
  "orc-shared.dataTypeText": "Text",
30
+ "orc-shared.december": "December",
31
+ "orc-shared.decemberShort": "Dec",
26
32
  "orc-shared.defaultApp": "Default application",
27
33
  "orc-shared.delete": "Delete",
28
34
  "orc-shared.description": "Description",
@@ -31,20 +37,42 @@
31
37
  "orc-shared.embedded": "Embedded",
32
38
  "orc-shared.error": "Error",
33
39
  "orc-shared.errorUnknown": "Unknown Error",
40
+ "orc-shared.february": "February",
41
+ "orc-shared.februaryShort": "Feb",
34
42
  "orc-shared.fieldIsRequired": "This field is required",
35
43
  "orc-shared.fieldMustBeValidEmail": "This field must be a valid email",
36
44
  "orc-shared.fieldMustBeValidPhoneExtension": "This field must be a valid phone extension",
37
45
  "orc-shared.fieldMustBeValidPhoneNumber": "This field must be a valid phone number",
46
+ "orc-shared.friday": "Friday",
47
+ "orc-shared.fridayMin": "Fr",
48
+ "orc-shared.fridayShort": "Fri",
38
49
  "orc-shared.help": "Help",
39
50
  "orc-shared.inactive": "Inactive",
40
51
  "orc-shared.internetExplorerWarningContent": "You are using a browser that we no longer support. For a better experience with our HTML web applications, we recommend you to use the latest version of one of the following browsers:",
41
52
  "orc-shared.internetExplorerWarningTitle": "Improve your experience",
53
+ "orc-shared.january": "January",
54
+ "orc-shared.januaryShort": "Jan",
55
+ "orc-shared.july": "July",
56
+ "orc-shared.julyShort": "Jul",
57
+ "orc-shared.june": "June",
58
+ "orc-shared.juneShort": "Jun",
42
59
  "orc-shared.lastModified": "Last Modified",
43
60
  "orc-shared.lastModifiedBy": "Last Modified By",
61
+ "orc-shared.march": "March",
62
+ "orc-shared.marchShort": "Mar",
63
+ "orc-shared.may": "May",
64
+ "orc-shared.mayShort": "May",
65
+ "orc-shared.monday": "Monday",
66
+ "orc-shared.mondayMin": "Mo",
67
+ "orc-shared.mondayShort": "Mon",
44
68
  "orc-shared.needToRefresh": "You are not authorized to execute a request. Click refresh to reload the application.",
45
69
  "orc-shared.next": "Next",
46
70
  "orc-shared.no": "No",
47
71
  "orc-shared.notAvailable": "N/A",
72
+ "orc-shared.november": "November",
73
+ "orc-shared.novemberShort": "Nov",
74
+ "orc-shared.october": "October",
75
+ "orc-shared.octoberShort": "Oct",
48
76
  "orc-shared.orcScriptsVersion": "Orc-Scripts Framework {version}",
49
77
  "orc-shared.orcSecretVersion": "Orc-Secret Framework {version}",
50
78
  "orc-shared.orcSharedVersion": "Orc-Shared Framework {version}",
@@ -52,6 +80,9 @@
52
80
  "orc-shared.refresh": "Refresh",
53
81
  "orc-shared.registry": "Registry",
54
82
  "orc-shared.remove": "Remove",
83
+ "orc-shared.saturday": "Saturday",
84
+ "orc-shared.saturdayMin": "Sa",
85
+ "orc-shared.saturdayShort": "Sat",
55
86
  "orc-shared.save": "Save",
56
87
  "orc-shared.scopeChangeWithOpenedTabsConfirmation": "One or more entities opened will be closed. Would you like to change scope now?",
57
88
  "orc-shared.scopeChangeWithOpenedTabsTitle": "Confirm scope change",
@@ -59,19 +90,33 @@
59
90
  "orc-shared.scopeChangeWithUnsavedDataTitle": "Confirm scope change without saving data",
60
91
  "orc-shared.scopeFilterPlaceholder": "Type a scope name",
61
92
  "orc-shared.search": "Search",
93
+ "orc-shared.september": "September",
94
+ "orc-shared.septemberShort": "Sep",
62
95
  "orc-shared.shared": "Shared",
63
96
  "orc-shared.showFewerLanguages": "Show fewer languages",
64
97
  "orc-shared.showMoreLanguages": "Show more languages",
65
98
  "orc-shared.signOut": "Sign out",
66
99
  "orc-shared.sortOrder": "Sort Order",
67
100
  "orc-shared.status": "Status",
101
+ "orc-shared.sunday": "Sunday",
102
+ "orc-shared.sundayMin": "Su",
103
+ "orc-shared.sundayShort": "Sun",
68
104
  "orc-shared.taskId": "Task ID",
69
105
  "orc-shared.taskInProgressModalTitle": "Task In Progress",
70
106
  "orc-shared.taskLogs": "Logs",
71
107
  "orc-shared.taskStatus": "Status",
108
+ "orc-shared.thursday": "Thursday",
109
+ "orc-shared.thursdayMin": "Th",
110
+ "orc-shared.thursdayShort": "Thu",
111
+ "orc-shared.tuesday": "Tuesday",
112
+ "orc-shared.tuesdayMin": "Tu",
113
+ "orc-shared.tuesdayShort": "Tue",
72
114
  "orc-shared.unsavedChanges": "This entity has unsaved changes. All changes will be lost.\n\nAre you sure you want to close it?",
73
115
  "orc-shared.valueName": "Value Name",
74
116
  "orc-shared.valueTypeWrapperFalse": "False",
75
117
  "orc-shared.valueTypeWrapperTrue": "True",
118
+ "orc-shared.wednesday": "Wednesday",
119
+ "orc-shared.wednesdayMin": "We",
120
+ "orc-shared.wednesdayShort": "Wed",
76
121
  "orc-shared.yes": "Yes"
77
122
  }
@@ -5,6 +5,10 @@
5
5
  "orc-shared.allRightsReserved": "Tout droits réservés.",
6
6
  "orc-shared.appSelectorTitle": "Orckestra Commerce Cloud : Liste des applications",
7
7
  "orc-shared.applyChanges": "Appliquer les modifications",
8
+ "orc-shared.april": "avril",
9
+ "orc-shared.aprilShort": "avr.",
10
+ "orc-shared.august": "août",
11
+ "orc-shared.augustShort": "août",
8
12
  "orc-shared.back": "Précédent",
9
13
  "orc-shared.cancel": "Annuler",
10
14
  "orc-shared.ccDescription": "La plateforme de commerce « API-first » qui rend le commerce de détail omnicanal fluide.",
@@ -23,6 +27,8 @@
23
27
  "orc-shared.dataTypeInteger": "Nombre entier",
24
28
  "orc-shared.dataTypeLookup": "Index des listes",
25
29
  "orc-shared.dataTypeText": "Texte",
30
+ "orc-shared.december": "décembre",
31
+ "orc-shared.decemberShort": "déc.",
26
32
  "orc-shared.defaultApp": "Application par défaut",
27
33
  "orc-shared.delete": "Supprimer",
28
34
  "orc-shared.description": "Description",
@@ -31,20 +37,42 @@
31
37
  "orc-shared.embedded": "Intégré",
32
38
  "orc-shared.error": "Erreur",
33
39
  "orc-shared.errorUnknown": "Erreur inconnue",
40
+ "orc-shared.february": "février",
41
+ "orc-shared.februaryShort": "févr.",
34
42
  "orc-shared.fieldIsRequired": "Est requis",
35
43
  "orc-shared.fieldMustBeValidEmail": "Ce champ doit contenir un courriel valide",
36
44
  "orc-shared.fieldMustBeValidPhoneExtension": "Ce champ doit contenir une extension de téléphone valide",
37
45
  "orc-shared.fieldMustBeValidPhoneNumber": "Ce champ doit contenir un numéro de téléphone valide",
46
+ "orc-shared.friday": "vendredi",
47
+ "orc-shared.fridayMin": "ve",
48
+ "orc-shared.fridayShort": "ven.",
38
49
  "orc-shared.help": "Aide",
39
50
  "orc-shared.inactive": "Inactif",
40
51
  "orc-shared.internetExplorerWarningContent": "Vous utilisez un navigateur qui n'est plus supporté. Pour assurer une expérience optimale de nos applications web HTML, nous vous recommendons d'utiliser la dernière version des navigateurs suivants:",
41
52
  "orc-shared.internetExplorerWarningTitle": "Améliorez votre expérience",
53
+ "orc-shared.january": "janvier",
54
+ "orc-shared.januaryShort": "janv.",
55
+ "orc-shared.july": "juillet",
56
+ "orc-shared.julyShort": "juil.",
57
+ "orc-shared.june": "juin",
58
+ "orc-shared.juneShort": "juin",
42
59
  "orc-shared.lastModified": "Dernière date de modification",
43
60
  "orc-shared.lastModifiedBy": "Modifié par",
61
+ "orc-shared.march": "mars",
62
+ "orc-shared.marchShort": "mars",
63
+ "orc-shared.may": "mai",
64
+ "orc-shared.mayShort": "mai",
65
+ "orc-shared.monday": "lundi",
66
+ "orc-shared.mondayMin": "lu",
67
+ "orc-shared.mondayShort": "lun.",
44
68
  "orc-shared.needToRefresh": "Vous n'êtes pas autorisé à effectuer une requête. Veuillez cliquer sur Rafraîchir pour rafraîchir l’application.",
45
69
  "orc-shared.next": "Suivant",
46
70
  "orc-shared.no": "Non",
47
71
  "orc-shared.notAvailable": "N/A",
72
+ "orc-shared.november": "novembre",
73
+ "orc-shared.novemberShort": "nov.",
74
+ "orc-shared.october": "octobre",
75
+ "orc-shared.octoberShort": "oct.",
48
76
  "orc-shared.orcScriptsVersion": "Infrastructure Orc-Scripts {version}",
49
77
  "orc-shared.orcSecretVersion": "Infrastructure Orc-Secret {version}",
50
78
  "orc-shared.orcSharedVersion": "Infrastructure Orc-Shared {version}",
@@ -52,6 +80,9 @@
52
80
  "orc-shared.refresh": "Rafraîchir",
53
81
  "orc-shared.registry": "Régistre",
54
82
  "orc-shared.remove": "Retirer",
83
+ "orc-shared.saturday": "samedi",
84
+ "orc-shared.saturdayMin": "sa",
85
+ "orc-shared.saturdayShort": "sam.",
55
86
  "orc-shared.save": "Sauvegarder",
56
87
  "orc-shared.scopeChangeWithOpenedTabsConfirmation": "Une ou plusieurs entités ouvertes seront fermées. Voulez-vous vraiment changer de Scope?",
57
88
  "orc-shared.scopeChangeWithOpenedTabsTitle": "Confirmation du changement de Scope",
@@ -59,19 +90,33 @@
59
90
  "orc-shared.scopeChangeWithUnsavedDataTitle": "Confirmation du changement de Scope sans sauvegarde",
60
91
  "orc-shared.scopeFilterPlaceholder": "Entrez un nom de Scope",
61
92
  "orc-shared.search": "Recherche",
93
+ "orc-shared.september": "septembre",
94
+ "orc-shared.septemberShort": "sept.",
62
95
  "orc-shared.shared": "Partagé",
63
96
  "orc-shared.showFewerLanguages": "Afficher moins de langues",
64
97
  "orc-shared.showMoreLanguages": "Afficher plus de langues",
65
98
  "orc-shared.signOut": "Se déconnecter",
66
99
  "orc-shared.sortOrder": "Ordre de tri",
67
100
  "orc-shared.status": "Statut",
101
+ "orc-shared.sunday": "dimanche",
102
+ "orc-shared.sundayMin": "di",
103
+ "orc-shared.sundayShort": "dim.",
68
104
  "orc-shared.taskId": "Identifiant de la tâche",
69
105
  "orc-shared.taskInProgressModalTitle": "Tâche en cours",
70
106
  "orc-shared.taskLogs": "Journal",
71
107
  "orc-shared.taskStatus": "Statut",
108
+ "orc-shared.thursday": "jeudi",
109
+ "orc-shared.thursdayMin": "je",
110
+ "orc-shared.thursdayShort": "jeu.",
111
+ "orc-shared.tuesday": "mardi",
112
+ "orc-shared.tuesdayMin": "ma",
113
+ "orc-shared.tuesdayShort": "mar.",
72
114
  "orc-shared.unsavedChanges": "Ce dossier contient des modifications qui ne sont sauvegardées. Si vous quittez, les modifications seront perdues.\n\nVoulez vous vraiment quitter?",
73
115
  "orc-shared.valueName": "Nom de la valeur",
74
116
  "orc-shared.valueTypeWrapperFalse": "Faux",
75
117
  "orc-shared.valueTypeWrapperTrue": "Vrai",
118
+ "orc-shared.wednesday": "mercredi",
119
+ "orc-shared.wednesdayMin": "me",
120
+ "orc-shared.wednesdayShort": "mer.",
76
121
  "orc-shared.yes": "Oui"
77
122
  }
@@ -1,19 +1,19 @@
1
1
  import moment from "moment-timezone";
2
2
 
3
- export const getTimeZone = () => Intl.DateTimeFormat().resolvedOptions().timeZone;
3
+ const timeZonesList = require("../timezones.json");
4
4
 
5
- export const getTimeZoneByName = name => {
6
- for (let [key, value] of timeZonesList.entries()) {
7
- if (value === name) return key;
8
- }
5
+ export const getIanaTimeZone = () => Intl.DateTimeFormat().resolvedOptions().timeZone;
9
6
 
10
- return getTimeZone();
7
+ export const getIanaTimeZoneFromWindowsName = windowsName => {
8
+ // If not found, the mapping might need to be updated, rerun the generateWindowsZone script
9
+ return (timeZonesList.windowsToIana[windowsName] ?? [getIanaTimeZone()])[0];
11
10
  };
12
11
 
13
- export const getTimeZoneName = () => {
14
- const customerTimezone = getTimeZone();
15
- const timezoneName = timeZonesList.get(customerTimezone);
16
- return timezoneName;
12
+ export const getWindowsTimeZone = () => {
13
+ const customerTimezone = getIanaTimeZone();
14
+ const windowsTimezones = timeZonesList.ianaToWindows[customerTimezone];
15
+ // If not found, the mapping might need to be updated, rerun the generateWindowsZone script
16
+ return (windowsTimezones ?? [customerTimezone])[0];
17
17
  };
18
18
 
19
19
  //converting time from other timezone to local
@@ -31,128 +31,3 @@ export const convertTimeToOtherTimeZone = (date, timezone) => {
31
31
  const dateWithOtherZone = [dateWithoutZone, otherZone].join("");
32
32
  return new Date(dateWithOtherZone);
33
33
  };
34
-
35
- export const timeZonesList = new Map([
36
- ["Africa/Bangui", "W. Central Africa Standard Time"],
37
- ["Africa/Cairo", "Egypt Standard Time"],
38
- ["Africa/Casablanca", "Morocco Standard Time"],
39
- ["Africa/Harare", "South Africa Standard Time"],
40
- ["Africa/Johannesburg", "South Africa Standard Time"],
41
- ["Africa/Lagos", "W. Central Africa Standard Time"],
42
- ["Africa/Monrovia", "Greenwich Standard Time"],
43
- ["Africa/Nairobi", "E. Africa Standard Time"],
44
- ["Africa/Windhoek", "Namibia Standard Time"],
45
- ["America/Anchorage", "Alaskan Standard Time"],
46
- ["America/Argentina/San_Juan", "Argentina Standard Time"],
47
- ["America/Asuncion", "Paraguay Standard Time"],
48
- ["America/Bahia", "Bahia Standard Time"],
49
- ["America/Bogota", "SA Pacific Standard Time"],
50
- ["America/Buenos_Aires", "Argentina Standard Time"],
51
- ["America/Caracas", "Venezuela Standard Time"],
52
- ["America/Cayenne", "SA Eastern Standard Time"],
53
- ["America/Chicago", "Central Standard Time"],
54
- ["America/Chihuahua", "Mountain Standard Time (Mexico)"],
55
- ["America/Cuiaba", "Central Brazilian Standard Time"],
56
- ["America/Denver", "Mountain Standard Time"],
57
- ["America/Fortaleza", "SA Eastern Standard Time"],
58
- ["America/Godthab", "Greenland Standard Time"],
59
- ["America/Guatemala", "Central America Standard Time"],
60
- ["America/Halifax", "Atlantic Standard Time"],
61
- ["America/Indianapolis", "US Eastern Standard Time"],
62
- ["America/Indiana/Indianapolis", "US Eastern Standard Time"],
63
- ["America/La_Paz", "SA Western Standard Time"],
64
- ["America/Los_Angeles", "Pacific Standard Time"],
65
- ["America/Mexico_City", "Mexico Standard Time"],
66
- ["America/Montevideo", "Montevideo Standard Time"],
67
- ["America/New_York", "Eastern Standard Time"],
68
- ["America/Noronha", "UTC-02"],
69
- ["America/Phoenix", "US Mountain Standard Time"],
70
- ["America/Regina", "Canada Central Standard Time"],
71
- ["America/Santa_Isabel", "Pacific Standard Time (Mexico)"],
72
- ["America/Santiago", "Pacific SA Standard Time"],
73
- ["America/Sao_Paulo", "E. South America Standard Time"],
74
- ["America/St_Johns", "Newfoundland Standard Time"],
75
- ["America/Tijuana", "Pacific Standard Time"],
76
- ["Antarctica/McMurdo", "New Zealand Standard Time"],
77
- ["Atlantic/South_Georgia", "UTC-02"],
78
- ["Asia/Almaty", "Central Asia Standard Time"],
79
- ["Asia/Amman", "Jordan Standard Time"],
80
- ["Asia/Baghdad", "Arabic Standard Time"],
81
- ["Asia/Baku", "Azerbaijan Standard Time"],
82
- ["Asia/Bangkok", "SE Asia Standard Time"],
83
- ["Asia/Beirut", "Middle East Standard Time"],
84
- ["Asia/Calcutta", "India Standard Time"],
85
- ["Asia/Colombo", "Sri Lanka Standard Time"],
86
- ["Asia/Damascus", "Syria Standard Time"],
87
- ["Asia/Dhaka", "Bangladesh Standard Time"],
88
- ["Asia/Dubai", "Arabian Standard Time"],
89
- ["Asia/Irkutsk", "North Asia East Standard Time"],
90
- ["Asia/Jerusalem", "Israel Standard Time"],
91
- ["Asia/Kabul", "Afghanistan Standard Time"],
92
- ["Asia/Kamchatka", "Kamchatka Standard Time"],
93
- ["Asia/Karachi", "Pakistan Standard Time"],
94
- ["Asia/Katmandu", "Nepal Standard Time"],
95
- ["Asia/Kolkata", "India Standard Time"],
96
- ["Asia/Krasnoyarsk", "North Asia Standard Time"],
97
- ["Asia/Kuala_Lumpur", "Singapore Standard Time"],
98
- ["Asia/Kuwait", "Arab Standard Time"],
99
- ["Asia/Magadan", "Magadan Standard Time"],
100
- ["Asia/Muscat", "Arabian Standard Time"],
101
- ["Asia/Novosibirsk", "N. Central Asia Standard Time"],
102
- ["Asia/Oral", "West Asia Standard Time"],
103
- ["Asia/Rangoon", "Myanmar Standard Time"],
104
- ["Asia/Riyadh", "Arab Standard Time"],
105
- ["Asia/Seoul", "Korea Standard Time"],
106
- ["Asia/Shanghai", "China Standard Time"],
107
- ["Asia/Singapore", "Singapore Standard Time"],
108
- ["Asia/Taipei", "Taipei Standard Time"],
109
- ["Asia/Tashkent", "West Asia Standard Time"],
110
- ["Asia/Tbilisi", "Georgian Standard Time"],
111
- ["Asia/Tehran", "Iran Standard Time"],
112
- ["Asia/Tokyo", "Tokyo Standard Time"],
113
- ["Asia/Ulaanbaatar", "Ulaanbaatar Standard Time"],
114
- ["Asia/Vladivostok", "Vladivostok Standard Time"],
115
- ["Asia/Yakutsk", "Yakutsk Standard Time"],
116
- ["Asia/Yekaterinburg", "Ekaterinburg Standard Time"],
117
- ["Asia/Yerevan", "Armenian Standard Time"],
118
- ["Atlantic/Azores", "Azores Standard Time"],
119
- ["Atlantic/Cape_Verde", "Cape Verde Standard Time"],
120
- ["Atlantic/Reykjavik", "Greenwich Standard Time"],
121
- ["Australia/Adelaide", "Cen. Australia Standard Time"],
122
- ["Australia/Brisbane", "E. Australia Standard Time"],
123
- ["Australia/Darwin", "AUS Central Standard Time"],
124
- ["Australia/Hobart", "Tasmania Standard Time"],
125
- ["Australia/Perth", "W. Australia Standard Time"],
126
- ["Australia/Sydney", "AUS Eastern Standard Time"],
127
- ["UTC", "UTC"],
128
- ["Etc/GMT+11", "UTC-11"],
129
- ["Etc/GMT+12", "Dateline Standard Time"],
130
- ["Etc/GMT+2", "UTC-02"],
131
- ["Etc/GMT-12", "UTC+12"],
132
- ["Europe/Amsterdam", "W. Europe Standard Time"],
133
- ["Europe/Athens", "GTB Standard Time"],
134
- ["Europe/Belgrade", "Central Europe Standard Time"],
135
- ["Europe/Berlin", "W. Europe Standard Time"],
136
- ["Europe/Brussels", "Romance Standard Time"],
137
- ["Europe/Budapest", "Central Europe Standard Time"],
138
- ["Europe/Dublin", "GMT Standard Time"],
139
- ["Europe/Helsinki", "FLE Standard Time"],
140
- ["Europe/Istanbul", "GTB Standard Time"],
141
- ["Europe/Kiev", "FLE Standard Time"],
142
- ["Europe/London", "GMT Standard Time"],
143
- ["Europe/Minsk", "E. Europe Standard Time"],
144
- ["Europe/Moscow", "Russian Standard Time"],
145
- ["Europe/Paris", "Romance Standard Time"],
146
- ["Europe/Sarajevo", "Central European Standard Time"],
147
- ["Europe/Warsaw", "Central European Standard Time"],
148
- ["Indian/Mauritius", "Mauritius Standard Time"],
149
- ["Pacific/Apia", "Samoa Standard Time"],
150
- ["Pacific/Auckland", "New Zealand Standard Time"],
151
- ["Pacific/Fiji", "Fiji Standard Time"],
152
- ["Pacific/Guadalcanal", "Central Pacific Standard Time"],
153
- ["Pacific/Guam", "West Pacific Standard Time"],
154
- ["Pacific/Honolulu", "Hawaiian Standard Time"],
155
- ["Pacific/Pago_Pago", "UTC-11"],
156
- ["Pacific/Port_Moresby", "West Pacific Standard Time"],
157
- ["Pacific/Tongatapu", "Tonga Standard Time"],
158
- ]);
@@ -1,7 +1,7 @@
1
1
  import {
2
- getTimeZone,
3
- getTimeZoneByName,
4
- getTimeZoneName,
2
+ getIanaTimeZone,
3
+ getIanaTimeZoneFromWindowsName,
4
+ getWindowsTimeZone,
5
5
  convertTimeToLocalTimeZone,
6
6
  convertTimeToOtherTimeZone,
7
7
  } from "./timezoneHelper";
@@ -20,21 +20,21 @@ describe("Timezone Helper", () => {
20
20
  });
21
21
 
22
22
  it("Retrieves customer timezone", () => {
23
- expect(getTimeZone, "called with", [], "to satisfy", "Europe/Amsterdam");
23
+ expect(getIanaTimeZone, "called with", [], "to satisfy", "Europe/Amsterdam");
24
24
  });
25
25
 
26
26
  it("Retrieves timezone short name by passed name", () => {
27
27
  const timezoneName = "Central America Standard Time";
28
- expect(getTimeZoneByName, "called with", [timezoneName], "to satisfy", "America/Guatemala");
28
+ expect(getIanaTimeZoneFromWindowsName, "called with", [timezoneName], "to satisfy", "America/Guatemala");
29
29
  });
30
30
 
31
31
  it("Returns user timezone if passed name is not found", () => {
32
32
  const timezoneName = "Test Timezone";
33
- expect(getTimeZoneByName, "called with", [timezoneName], "to satisfy", "Europe/Amsterdam");
33
+ expect(getIanaTimeZoneFromWindowsName, "called with", [timezoneName], "to satisfy", "Europe/Amsterdam");
34
34
  });
35
35
 
36
36
  it("Retrieves user timezone name", () => {
37
- expect(getTimeZoneName, "called with", [], "to satisfy", "W. Europe Standard Time");
37
+ expect(getWindowsTimeZone, "called with", [], "to satisfy", "W. Europe Standard Time");
38
38
  });
39
39
 
40
40
  it("Retrieves user local timezone date", () => {