diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-08-04 11:05:31 -0700 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2023-08-10 12:28:19 +0200 |
commit | fa4840976ef40cb1ae76a1da21169bdb09518903 (patch) | |
tree | e10da18deb5ef6cf4bd4d18fd593ffc9814adea3 /apps | |
parent | e5e5c97668d8f29b7c8788fe0b1f038c10e360a3 (diff) | |
download | nextcloud-server-fa4840976ef40cb1ae76a1da21169bdb09518903.tar.gz nextcloud-server-fa4840976ef40cb1ae76a1da21169bdb09518903.zip |
refactor: format options
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit dbe8ba2b1da86ff4dbc43b4fa374730b23de2f33)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_reminders/src/shared/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_reminders/src/shared/utils.ts b/apps/files_reminders/src/shared/utils.ts index 358ca09aa25..165d409ad2c 100644 --- a/apps/files_reminders/src/shared/utils.ts +++ b/apps/files_reminders/src/shared/utils.ts @@ -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', @@ -129,6 +129,6 @@ export const getVerboseDateString = (dueDate: Date): string => { return dueDate.toLocaleString( getCanonicalLocale(), - localeOptions, + formatOptions, ) } |