Commit 2eea8ea5 authored by Robert's avatar Robert 👽

UPD: Format EVlog time

parent 1c4748d3
Pipeline #132024 passed with stages
in 6 minutes and 17 seconds
......@@ -53,7 +53,8 @@ export default {
{
key: 'ta_timestamp',
label: 'Zeit',
sortable: true
sortable: true,
formatter: this.formatDate
},
{
key: 'mgr_login_name',
......@@ -93,6 +94,12 @@ export default {
},
ta_color(value, key, item, type) {
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')
}
}
}
......
Markdown is supported
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