Skip to content

Commit

Permalink
fixing null for date
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsu committed Sep 12, 2012
1 parent eac83e1 commit 017bdd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions www/htime.ms
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export class HumanTime {
}

function dateTime(d) {
// if (typeof t != 'number') return '';
// var d = new Date(t);
if (!d) return '---';
var date = [d.getMonth(), d.getDay(), d.getFullYear()].join('-');
var minute = this.pad(d.getMinutes());
var second = this.pad(d.getSeconds());
Expand Down

0 comments on commit 017bdd0

Please sign in to comment.