diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-08-04 11:05:31 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-08-09 10:41:18 -0700 |
commit | dbe8ba2b1da86ff4dbc43b4fa374730b23de2f33 (patch) | |
tree | d237cdb6a8c4d480077ee0f55d886ba756e9e18e /apps | |
parent | 893da9c395a5187131f35ca806de70a6d647f187 (diff) | |
download | nextcloud-server-dbe8ba2b1da86ff4dbc43b4fa374730b23de2f33.tar.gz nextcloud-server-dbe8ba2b1da86ff4dbc43b4fa374730b23de2f33.zip |
refactor: format options
Signed-off-by: Christopher Ng <chrng8@gmail.com>
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, ) } |