corrected output for badly-formatted timeout date.
parent
f871edefed
commit
d30b53ddbf
|
@ -144,8 +144,10 @@ var ApprovedSiteView = Backbone.View.extend({
|
|||
}
|
||||
}
|
||||
|
||||
if (timeoutDate == null || !moment(timeoutDate).isValid()) {
|
||||
if (timeoutDate == null) {
|
||||
timeoutDate = "Never";
|
||||
} else if (!moment(timeoutDate).isValid()) {
|
||||
timeoutDate = "Unknown";
|
||||
} else {
|
||||
timeoutDate = moment(timeoutDate).calendar();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue