From a07249826a0a4a4febaf9c70b8f6229cc230ff82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Sun, 1 Apr 2018 15:59:17 +0200 Subject: [PATCH] MDL-38099 comments: year in comments date --- comment/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comment/lib.php b/comment/lib.php index 16fa9b6d38f..9034c84c500 100644 --- a/comment/lib.php +++ b/comment/lib.php @@ -577,7 +577,7 @@ class comment { $c->content = $u->ccontent; $c->format = $u->cformat; $c->timecreated = $u->ctimecreated; - $c->strftimeformat = get_string('strftimerecent', 'langconfig'); + $c->strftimeformat = get_string('strftimerecentfull', 'langconfig'); $url = new moodle_url('/user/view.php', array('id'=>$u->id, 'course'=>$this->courseid)); $c->profileurl = $url->out(false); // URL should not be escaped just yet. $c->fullname = fullname($u); @@ -712,7 +712,7 @@ class comment { $cmt_id = $DB->insert_record('comments', $newcmt); if (!empty($cmt_id)) { $newcmt->id = $cmt_id; - $newcmt->strftimeformat = get_string('strftimerecent', 'langconfig'); + $newcmt->strftimeformat = get_string('strftimerecentfull', 'langconfig'); $newcmt->fullname = fullname($USER); $url = new moodle_url('/user/view.php', array('id' => $USER->id, 'course' => $this->courseid)); $newcmt->profileurl = $url->out();