Skip to content

Commit

Permalink
Merge pull request #572 from hammerlab/fix_feed_times
Browse files Browse the repository at this point in the history
Fix feed times bug and use created_date
  • Loading branch information
ihodes committed Apr 1, 2015
2 parents 413b030 + 83bbd1e commit 4782bb6
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cycledash/static/js/comments/components/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var Comment = React.createClass({
// Add the offset to get local time
var timezoneOffset = new Date().getTimezoneOffset() * 60 * 1000;
var comment = this.props.comment,
relativeDate = moment(new Date(comment.last_modified - timezoneOffset)).fromNow();
relativeDate = moment(new Date(comment.created)).add(timezoneOffset).fromNow();
var authorName = comment.author_name ?
comment.author_name.slice(0, 15) : 'Anonymous';
return (
Expand Down
Binary file modified tests/pdifftests/images/examine_comments-edit.png
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
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/runs_bams.png
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/runs_info.png
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/runs_page.png
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/website_comments.png
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 4782bb6

Please sign in to comment.