- Posts: 1
COMMUNITY FORUM
DateTime::__construct() [datetime.--construct]:
- michael Spohn
- Topic Author
- Offline
- New Member
Less
More
12 years 8 months ago #61695
by michael Spohn
DateTime::__construct() [datetime.--construct]: was created by michael Spohn
Hello,
I've seen in older threads that other people have struggled with the same problem. This is my first post here and I hope I'm not offending anyone repeating a subjet. I've read the older threads and did a lot of research, I've set a timezone in php.ini and I've updated the language files for front and back end.
However, that thing still drives me crazy.
I get the following 500 error for French k2 content
DateTime::__construct() [datetime.--construct]: Failed to parse time string (mardi, 06 mars 2012) at position 0 (m): The timezone could not be found in the database
and the next one for German k2 content
DateTime::__construct() [datetime.--construct]: Failed to parse time string (Dienstag, 06 März 2012) at position 0 (D): The timezone could not be found in the database
Needless to say that English version is fine.
The date in the time string, March 6th, 2012 is stored in an extra field of type date.
Any hints, ideas or help are highly appreciated
Best regards,
Michael
I've seen in older threads that other people have struggled with the same problem. This is my first post here and I hope I'm not offending anyone repeating a subjet. I've read the older threads and did a lot of research, I've set a timezone in php.ini and I've updated the language files for front and back end.
However, that thing still drives me crazy.
I get the following 500 error for French k2 content
DateTime::__construct() [datetime.--construct]: Failed to parse time string (mardi, 06 mars 2012) at position 0 (m): The timezone could not be found in the database
and the next one for German k2 content
DateTime::__construct() [datetime.--construct]: Failed to parse time string (Dienstag, 06 März 2012) at position 0 (D): The timezone could not be found in the database
Needless to say that English version is fine.
The date in the time string, March 6th, 2012 is stored in an extra field of type date.
Any hints, ideas or help are highly appreciated
Best regards,
Michael
Please Log in or Create an account to join the conversation.
- Eduardo
- Offline
- New Member
Less
More
- Posts: 1
12 years 7 months ago #61696
by Eduardo
Replied by Eduardo on topic Re: DateTime::__construct() [datetime.--construct]:
Same problem here, using pt_BR language.
Please Log in or Create an account to join the conversation.
- Adriano
- Offline
- New Member
Less
More
- Posts: 1
12 years 3 months ago #61697
by Adriano
Replied by Adriano on topic Re: DateTime::__construct() [datetime.--construct]:
same problem with en. how to solve?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 3 months ago #61698
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: DateTime::__construct() [datetime.--construct]:
Hi. Joomla! 2.5 uses PHP native date functions for parsing the dates. So the formats in your translation files must be in a format that PHP understands. Valid formats can be found at www.php.net/manual/en/datetime.formats.php.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.