mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-14 22:46:38 +00:00
Update moment time format in Device and Gateway list page
Details: - Also shows "Never" when timestamp not available. Signed-off-by: SAGAR PATEL <sagar.a.patel@slscorp.com>
This commit is contained in:
parent
0fe1ff10b4
commit
6640496e10
@ -71,6 +71,7 @@ class ListDevices extends Component<IProps, IState> {
|
||||
ts.setUTCSeconds(record.lastSeenAt.seconds);
|
||||
return moment(ts).format("YYYY-MM-DD HH:mm:ss");
|
||||
}
|
||||
return "Never";
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -205,4 +206,4 @@ class ListDevices extends Component<IProps, IState> {
|
||||
}
|
||||
}
|
||||
|
||||
export default ListDevices;
|
||||
export default ListDevices;
|
@ -32,6 +32,7 @@ class ListGateways extends Component<IProps> {
|
||||
ts.setUTCSeconds(record.lastSeenAt.seconds);
|
||||
return moment(ts).format("YYYY-MM-DD HH:mm:ss");
|
||||
}
|
||||
return "Never";
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -125,4 +126,4 @@ class ListGateways extends Component<IProps> {
|
||||
}
|
||||
}
|
||||
|
||||
export default ListGateways;
|
||||
export default ListGateways;
|
Loading…
x
Reference in New Issue
Block a user