Skip to content

Commit

Permalink
refactor: format options
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 4, 2023
1 parent f65ef72 commit b1f30c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_reminders/src/shared/utils.ts
Expand Up @@ -119,7 +119,7 @@ export const getDateString = (dueDate: Date): string => {
}

export const getVerboseDateString = (dueDate: Date): string => {
const localeOptions: Intl.DateTimeFormatOptions = {
const formatOptions: Intl.DateTimeFormatOptions = {
weekday: 'long',
hour: 'numeric',
minute: '2-digit',
Expand All @@ -129,6 +129,6 @@ export const getVerboseDateString = (dueDate: Date): string => {

return dueDate.toLocaleString(
getCanonicalLocale(),
localeOptions,
formatOptions,
)
}

0 comments on commit b1f30c1

Please sign in to comment.