-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.12, 3.9.14, 3.10.9, 3.11.5, 3.11.6, 3.11.7, 3.11.11, 4.0, 4.0.1, 4.0.5, 4.0.6, 4.1
When you add an rss resource to your rss block which does not pass a timestamp, the rss feed shows the unix startdate 1970-01-01.
This is confusing and unattractive. I would expect to see no date at all (or a hint, that there is no date submitted).
I think this can be easily fixed by adding one line to blocks/rss_client/classes/output/renderer.php:
public function format_published_date($timestamp) {
|
if (empty($timestamp)) {
|
return '';
|
} else {
|
return strftime(get_string('strftimerecentfull', 'langconfig'), $timestamp);
|
}
|
}
|