Keyword

DateTime::__construct() [datetime.--construct]:

  • michael Spohn
  • michael Spohn's Avatar Topic Author
  • Offline
  • New Member
More
12 years 8 months ago #61695 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

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #61696 by Eduardo
Same problem here, using pt_BR language.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #61697 by Adriano
same problem with en. how to solve?

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #61698 by Lefteris
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.


Powered by Kunena Forum