Skip to content

Commit

Permalink
Merge pull request #573 from hammerlab/fix_comment_sort
Browse files Browse the repository at this point in the history
Fix comment sorting bug
  • Loading branch information
tavinathanson committed Apr 1, 2015
2 parents 4782bb6 + 49a21cb commit 15050aa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cycledash/static/js/examine/components/CommentBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var CommentBox = React.createClass({
var comments = this.props.record.comments;
var timezoneOffset = this.getTimezoneOffsetMillis();
var commentNodes = _.sortBy(comments, comment => {
new Date(comment.created_date).getTime();
return new Date(comment.created_date).getTime();
}).map(comment => {
// Add the offset to get local time
var createdTimestampMillis = new Date(comment.created_date).
Expand Down
Binary file modified tests/pdifftests/images/examine_comments-edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/pdifftests/images/examine_comments-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 15050aa

Please sign in to comment.