summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorDixsie Wolmers <dixsie@ibm.com>2020-02-24 00:56:16 +0300
committerDerick Montague <derick.montague@ibm.com>2020-02-28 17:42:51 +0300
commit97f4187e1bac021ea7b5a0f5a780a3d4004edf64 (patch)
treed6851088fb7282b32a7dc66d41ea54a363b11b5f /package.json
parent5bb956d7596f3a91bed0554bf47552039f2c0713 (diff)
downloadwebui-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.json')
-rw-r--r--package.json5
1 files changed, 2 insertions, 3 deletions
diff --git a/package.json b/package.json
index b0519f42..2d5f4d5e 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,6 @@
"core-js": "3.3.2",
"js-cookie": "^2.2.1",
"vue": "2.6.11",
- "vue-date-fns": "1.1.0",
"vue-i18n": "8.15.3",
"vue-router": "3.1.3",
"vuelidate": "^0.7.4",
@@ -45,9 +44,9 @@
"node-sass": "4.13.1",
"prettier": "1.18.2",
"sass-loader": "8.0.0",
+ "vue-cli-plugin-i18n": "0.6.1",
"vue-template-compiler": "2.6.11",
- "vuepress": "^1.2.0",
- "vue-cli-plugin-i18n": "0.6.1"
+ "vuepress": "^1.2.0"
},
"gitHooks": {
"pre-commit": "lint-staged"