aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-09-21 14:17:11 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-09-21 14:17:11 +0200
commit84decb287599f4335e7c0511e9fde3a8f548ff00 (patch)
tree6fa8b273a332e4e92e2c6c4c4cef74fd1d19b405 /phpBB/includes
parentc9c7df735cd2a8774ec6f90bf63cc5544e2de0a4 (diff)
parent8160a8a1efe06de06a199be5c7e8262e0c199873 (diff)
downloadforums-84decb287599f4335e7c0511e9fde3a8f548ff00.tar
forums-84decb287599f4335e7c0511e9fde3a8f548ff00.tar.gz
forums-84decb287599f4335e7c0511e9fde3a8f548ff00.tar.bz2
forums-84decb287599f4335e7c0511e9fde3a8f548ff00.tar.xz
forums-84decb287599f4335e7c0511e9fde3a8f548ff00.zip
Merge pull request #5692 from stevendegroote/ticket/16159
[ticket/16159] Wrap post times in html time tag
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_display.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 792467019f..f8c882e771 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -547,11 +547,12 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
$last_post_subject = $last_post_subject_truncated = '';
}
$last_post_time = $user->format_date($row['forum_last_post_time']);
+ $last_post_time_rfc3339 = gmdate(DATE_RFC3339, $row['forum_last_post_time']);
$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&amp;p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
}
else
{
- $last_post_subject = $last_post_time = $last_post_url = $last_post_subject_truncated = '';
+ $last_post_subject = $last_post_time = $last_post_time_rfc3339 = $last_post_url = $last_post_subject_truncated = '';
}
// Output moderator listing ... if applicable
@@ -622,6 +623,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'LAST_POST_SUBJECT' => $last_post_subject,
'LAST_POST_SUBJECT_TRUNCATED' => $last_post_subject_truncated,
'LAST_POST_TIME' => $last_post_time,
+ 'LAST_POST_TIME_RFC3339'=> $last_post_time_rfc3339,
'LAST_POSTER' => get_username_string('username', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
'LAST_POSTER_COLOUR' => get_username_string('colour', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
'LAST_POSTER_FULL' => get_username_string('full', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),