Merge branch 'MDL-73692-401-Add-support-for-missing-timestamps-to-rss-block' of https://github.com/melanietreitinger/moodle into MOODLE_401_STABLE

This commit is contained in:
Paul Holden 2023-02-08 11:22:50 +00:00
commit daa7e5b4e2

View File

@ -92,7 +92,11 @@ class renderer extends \plugin_renderer_base {
* @return string
*/
public function format_published_date($timestamp) {
return \core_date::strftime(get_string('strftimerecentfull', 'langconfig'), $timestamp);
if (empty($timestamp)) {
return '';
} else {
return \core_date::strftime(get_string('strftimerecentfull', 'langconfig'), $timestamp);
}
}
/**