Skip to content

Commit

Permalink
Fix timestamps in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
lezhangxyz committed Oct 14, 2012
1 parent 25e5eb0 commit ee46723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/modules/StoryCollection.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ StoryCollection = (Backbone, Moment) ->
return stories

parseDate: (unixDate) ->
date = Moment(new Date unixDate)
date = Moment unixDate
# Customize Moment to print out a.m./p.m. instead of am/pm
Moment.meridiem = (hour, minute, isLower) ->
if hour < 12 then return "a.m." else return "p.m."
Expand Down

0 comments on commit ee46723

Please sign in to comment.