?
avatar plappermaul
plappermaul
13 Dec 2014

1) create an RSS feed page within Joomla 3.3.6

2) link to http://www.stotax-first.de/servlet/de.wmc.stv.xsearchips.stotax.Servlet?page=rss&bereich=arbeitsrecht

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?

avatar plappermaul plappermaul - open - 13 Dec 2014
avatar brianteeman
brianteeman - comment - 3 Jan 2015

I can confirm this issue


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5419.
avatar brianteeman brianteeman - change - 3 Jan 2015
Status New Confirmed
avatar brianteeman brianteeman - change - 3 Jan 2015
Labels Added: ?
avatar brianteeman brianteeman - change - 17 Jun 2015
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2015-06-17 16:54:20
Closed_By brianteeman
avatar brianteeman brianteeman - change - 17 Jun 2015
Build 3.3.6 staging
avatar brianteeman brianteeman - close - 17 Jun 2015

Add a Comment

Login with GitHub to post a comment