just some info explaining why the message happens.
DateTime::__construct(): Failed to parse time string (Mon, 5. January 2015 04.08.AM) at position 27 (A): The timezone could not be found in the database
within the page we're using code like
$result['startDateTime'] = 'Mon, 5. January 2015 04.08.AM';
$start = new JDate($result['startDateTime']);
$start_day = $start->format('m-d-Y');
JDate doesn't like the input other then the formats of
php Date
and in this case it doesn't like the text of 2 characters. When using UTC or something like that it it will recognize the timezone and will not trow in the error.
but to solve the above the AM should be stripped to something like this
$result['startDateTime'] = 'Mon, 5. January 2015 04.08';
$start = new JDate($result['startDateTime']);
$start_day = $start->format('m-d-Y');
so when using the JDate function make sure that the input is correct as you will get an unfriendly error notice if it's used incorrectly.