From 259c496e7305a459b32cab3974103c3820c0a419 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 12 Jul 2023 12:30:20 +0100 Subject: [PATCH] MDL-75740 block_news_items: show full date format for all posts. Co-authored-by: Przemek Kaszubski --- blocks/news_items/block_news_items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/news_items/block_news_items.php b/blocks/news_items/block_news_items.php index a4c6ac17f96..e9ed1ac2ca5 100644 --- a/blocks/news_items/block_news_items.php +++ b/blocks/news_items/block_news_items.php @@ -104,7 +104,7 @@ class block_news_items extends block_base { /// Actually create the listing now - $strftimerecent = get_string('strftimerecent'); + $strposttimeformat = get_string('strftimedatetime', 'core_langconfig'); $strmore = get_string('more', 'forum'); /// Accessibility: markup as a list. @@ -129,7 +129,7 @@ class block_news_items extends block_base { $text .= '
  • '. '
    '. - '
    '.userdate($posttime, $strftimerecent).'
    '. + '
    '.userdate($posttime, $strposttimeformat).'
    '. '
    '.$userfullname.'
    '. '
    '. ''.