summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CommentStreams/includes/Comment.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/CommentStreams/includes/Comment.php b/CommentStreams/includes/Comment.php
index 33304b35..c6744ac5 100644
--- a/CommentStreams/includes/Comment.php
+++ b/CommentStreams/includes/Comment.php
@@ -371,6 +371,10 @@ class Comment {
*/
public function getCreationDate() {
if ( !is_null( $this->getCreationTimestamp() ) ) {
+ $user = RequestContext::getMain()->getUser();
+ if ($user && !$user->isAnon()) {
+ $this->creation_timestamp->offsetForUser($user);
+ }
return $this->creation_timestamp->format( "M j \a\\t g:i a" );
}
return "";
@@ -398,6 +402,10 @@ class Comment {
*/
public function getModificationDate() {
if ( !is_null( $this->getModificationTimestamp() ) ) {
+ $user = RequestContext::getMain()->getUser();
+ if ($user && !$user->isAnon()) {
+ $this->modification_timestamp->offsetForUser($user);
+ }
return $this->modification_timestamp->format( "M j \a\\t g:i a" );
}
return null;