Write stopped time to database for all events

* To prevent the "long duration" websocket issue for missing stop events
This commit is contained in:
JonnyWong16 2017-08-22 20:29:21 -07:00
parent a81dfe83a9
commit 1c8e581cf1
4 changed files with 11 additions and 8 deletions

View file

@ -203,7 +203,7 @@ history_table_options = {
"targets": [9],
"data":"stopped",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData === null) {
if (cellData === null || rowData['state'] != null) {
$(td).html('n/a');
} else {
$(td).html(moment(cellData,"X").format(time_format));