Commit 2eea8ea5 authored by gj4210's avatar gj4210 👁
Browse files

UPD: Format EVlog time

parent 1c4748d3
Pipeline #132024 passed with stages
in 6 minutes and 17 seconds
...@@ -53,7 +53,8 @@ export default { ...@@ -53,7 +53,8 @@ export default {
{ {
key: 'ta_timestamp', key: 'ta_timestamp',
label: 'Zeit', label: 'Zeit',
sortable: true sortable: true,
formatter: this.formatDate
}, },
{ {
key: 'mgr_login_name', key: 'mgr_login_name',
...@@ -93,6 +94,12 @@ export default { ...@@ -93,6 +94,12 @@ export default {
}, },
ta_color(value, key, item, type) { ta_color(value, key, item, type) {
return {style: 'background: ' + item.ta_timestamp.toHSL({lit: [30, 40]})} return {style: 'background: ' + item.ta_timestamp.toHSL({lit: [30, 40]})}
},
formatDate(value, key, item) {
if (value == null) {
return 'N/A'
}
return new Date(Date.parse(value)).toLocaleString('de-DE')
} }
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment