1) create an RSS feed page within Joomla 3.3.6
3) show page on webpage
4) side will crash with error "0 - DateTime::__construct(): Failed to parse time string (Fr, 12 Dez 2014 13:5:0) at position 0 (F): The timezone could not be found in the database"
Analysis shows that the feed provides a national (german) pubDate tag:
...
80082
Fr, 12 Dez 2014 13:5:0
...
source code that fills this data without any checks into the JDate constructor is
a) libraries/joomla/feed/entry.php line 76
// Ensure that setting a date always sets a JDate instance.
if ((($name == 'updatedDate') || ($name == 'publishedDate')) && !($value instanceof JDate))
{
$value = new JDate($value);
}
b) libraries/joomla/feed/feed.php line 81
// Ensure that setting a date always sets a JDate instance.
if ((($name == 'updatedDate') || ($name == 'publishedDate')) && !($value instanceof JDate))
{
$value = new JDate($value);
}
Is there any chance to mitigate the error?
Status | New | ⇒ | Confirmed |
Labels |
Added:
?
|
I took another look at this and the issue is not with Joomla but with the feed itself being invalid
see
https://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.stotax-first.de%2Fservlet%2Fde.wmc.stv.xsearchips.stotax.Servlet%3Fpage%3Drss%26bereich%3Darbeitsrecht
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-06-17 16:54:20 |
Closed_By | ⇒ | brianteeman |
Build | 3.3.6 | ⇒ | staging |
I can confirm this issue
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5419.