Wednesday, 17 January 2018
  4 Replies
  2.4K Visits
0
Votes
Undo
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
Support Info
Development
Thursday, 18 January 2018 10:51
·
#196689
Accepted Answer
0
Votes
Undo
You can use strftime formatting codes for the dates e.g.

{{Start Date:STARTDATE;%a, %d %b %Y}}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 17 January 2018 20:32
·
#196669
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 17 January 2018 22:16
·
#196679
0
Votes
Undo
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
Thursday, 18 January 2018 10:51
·
#196689
Accepted Answer
0
Votes
Undo
You can use strftime formatting codes for the dates e.g.

{{Start Date:STARTDATE;%a, %d %b %Y}}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Thursday, 18 January 2018 12:47
·
#196697
0
Votes
Undo
Thank you very much.
It's working now. :D

best regards
Michel Rottenberg
  • Page :
  • 1
There are no replies made for this post yet.