Skip to content

Commit

Permalink
solve the time format
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmianhua committed Dec 2, 2016
1 parent a996d4b commit a262e55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/events/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ function filterEventByDate(e) {
}

function formatDate(datetime) {
var time = new Date(datetime);
var time = moment(datetime);

return time.format();
}

Expand Down

0 comments on commit a262e55

Please sign in to comment.