lint: fix lint errors
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ export function formatDate(date, formatStr = 'PP', {withTimezone = false} = {})
|
||||
})
|
||||
|
||||
if (withTimezone) {
|
||||
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
const timezone = new Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
return `${formatted} (${timezone})`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user