By Guest on Wednesday, 17 January 2018
Replies 4
Likes 1
Views 2.4K
Votes 0
Hello
I have installed 2 translations files (French & Hebrew).

Since the installation of those translations I have a bug when I open the Jevents calendar in the menu.

I get the following error :
DateTime::__construct(): Failed to parse time string (Samedi, 6 Janvier 2018) at position 0 (S): The timezone could not be found in the database


How can I solve the problem ?

thank you for help

best regards
Michel Rottenberg
You can use strftime formatting codes for the dates e.g.

{{Start Date:STARTDATE;%a, %d %b %Y}}
·
Thursday, 18 January 2018 10:51
·
1 Likes
·
0 Votes
·
0 Comments
·
Hello,

Can you enable Maximum Error Reporting and debug in Joomla! Global config and try again? It should so you a file and link number of the issue?

Many thanks
Tony
·
Wednesday, 17 January 2018 20:32
·
1 Likes
·
0 Votes
·
0 Comments
·
Thank you.

I have found the origin of the problem : I'm using in customized layout the following text :

{{Start Date:STARTDATE}}

to get the stardate of the record. Then I want to get the day, month number and year as dd-mm-YYYY.

I transform the text with

$date = new DateTime($parm)

where $parm is {{Start Date:STARTDATE}}.

No problem when the site is in english. When the site is in french the $parm transformation gives the error.

Is it possible to get STARDATE with only dd,mm,YYYY in the customized layout ?

thank you for advices

best regards

Michel Rottenberg
·
Wednesday, 17 January 2018 22:16
·
1 Likes
·
0 Votes
·
0 Comments
·
Thank you very much.
It's working now.

best regards
Michel Rottenberg
·
Thursday, 18 January 2018 12:47
·
1 Likes
·
0 Votes
·
0 Comments
·
View Full Post