Skip to content

Commit

Permalink
Corrected dates in discussion
Browse files Browse the repository at this point in the history
Date in discussion has been changed to display local date.
  • Loading branch information
sebsauvage committed Feb 23, 2013
1 parent ec741f9 commit c7e1e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/zerobin.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function displayMessages(key, comments) {
try {
divComment.find('span.nickname').text(zeroDecipher(key, comment.meta.nickname));
} catch(err) { }
divComment.find('span.commentdate').text(' ('+(new Date(comment.meta.postdate*1000).toUTCString())+')').attr('title','CommentID: ' + comment.meta.commentid);
divComment.find('span.commentdate').text(' ('+(new Date(comment.meta.postdate*1000).toString())+')').attr('title','CommentID: ' + comment.meta.commentid);

// If an avatar is available, display it.
if (comment.meta.vizhash) {
Expand Down

0 comments on commit c7e1e15

Please sign in to comment.