mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
IC: show relative update timestamp #264
This commit is contained in:
parent
8aae987f1a
commit
cb308684b2
1 changed files with 3 additions and 3 deletions
|
@ -292,9 +292,9 @@ class InfrastructureComponents extends Component {
|
|||
}
|
||||
|
||||
stateUpdateModifier(updatedAt) {
|
||||
let dateFormat = 'ddd, DD MMM YYYY HH:mm:ss';
|
||||
let dateTime = moment.utc(updatedAt, dateFormat);
|
||||
return dateTime.toLocaleString('de-DE');
|
||||
let dateFormat = 'DD MMM YYYY HH:mm:ss';
|
||||
let dateTime = moment(updatedAt, dateFormat);
|
||||
return dateTime.fromNow()
|
||||
}
|
||||
|
||||
modifyManagedExternallyColumn(managedExternally){
|
||||
|
|
Loading…
Add table
Reference in a new issue