corrected output for badly-formatted timeout date.

pull/477/head
William Kim 2013-08-12 16:20:42 -04:00
parent 025eb05d3a
commit f1357cceb4
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}