diff --git a/src/utility/date.ts b/src/utility/date.ts index c87f793..3485dbf 100644 --- a/src/utility/date.ts +++ b/src/utility/date.ts @@ -46,11 +46,7 @@ export const getAdjustedTime = (): Moment => { }; export const getTimezoneAbbreviation = (date: Date): string => { - const timezone = date - .toString() - .match(/\(.+\)/g)?.[0] ?? '' - .replace('(', '') ?? '' - .replace(')', ''); + const timezone = date.toString().match(/\(.+\)/g)?.[0] ?? ''.replace('(', '') ?? ''.replace(')', ''); let abbreviation = ''; timezone.split(' ').forEach(word => {