diff options
author | Dixsie Wolmers <dixsie@ibm.com> | 2020-02-24 00:56:16 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-02-28 17:42:51 +0300 |
commit | 97f4187e1bac021ea7b5a0f5a780a3d4004edf64 (patch) | |
tree | d6851088fb7282b32a7dc66d41ea54a363b11b5f /package-lock.json | |
parent | 5bb956d7596f3a91bed0554bf47552039f2c0713 (diff) | |
download | webui-vue-97f4187e1bac021ea7b5a0f5a780a3d4004edf64.tar.xz |
Format date and time for international locales
Uninstalls vue-date-fns and uses toLocaleDateString() method to
return formatted date and time.
Date language is set by i18n and time/timezone is formatted by
browser locale.
Uses vue filter to format date and time as:
- short month, day, year, time and timezone
- 'en' example: Feb 23, 2020, 3:40:25 PM CST
- 'es' example: 25 feb 2020 14:23:36 GMT-6
- hour12 value is determined by browser default
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com>
Change-Id: I4fe8c51f5437cef263f1e0ea4184c0b552c85f4d
Diffstat (limited to 'package-lock.json')
-rw-r--r-- | package-lock.json | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/package-lock.json b/package-lock.json index 941df029..5222244d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16116,14 +16116,6 @@ } } }, - "vue-date-fns": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vue-date-fns/-/vue-date-fns-1.1.0.tgz", - "integrity": "sha512-9xgVtDtK97C5ztLAelecfd+lfUpYn6nGRVxuD6SCk/FiN9pr7C81qP83STcsFw4hz0MfcOinfqd8ctBarMsmpA==", - "requires": { - "date-fns": "^1.29.0" - } - }, "vue-eslint-parser": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-4.0.3.tgz", |