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 9, 2023
1 parent 893da9c commit dbe8ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_reminders/src/shared/utils.ts
Original file line number Diff line number Diff line change
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 dbe8ba2

Please sign in to comment.