fix(util-frontend): improve formatting

Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
Bert Verhelst 2021-09-12 15:19:27 +02:00 committed by GitHub
parent a7674755ba
commit 5969e913b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,6 @@ export function timezoneList() {
let result = []; let result = [];
for (let timezone of timezones) { for (let timezone of timezones) {
try { try {
let display = dayjs().tz(timezone.tzCode).format("Z"); let display = dayjs().tz(timezone.tzCode).format("Z");
@ -33,9 +32,8 @@ export function timezoneList() {
}) })
} catch (e) { } catch (e) {
console.error(e.message); console.error(e.message);
console.log("Skip this timezone") console.log("Skip this timezone");
} }
} }
result.sort((a, b) => { result.sort((a, b) => {