Keyword

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

  • mimi72
  • mimi72's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago - 12 years 11 months ago #56842 by mimi72
After install joomla 1.7, when create an articles... i´ve the last version on K2.. is something con the variables date.... the only form is choose option today in the calendar.
I see in old forum, people have the same problem....for someone now is all ok and for another the problem follow/persist.

thanks.


Note:all in frontend, all dates are like:that%AM, %16 %041 %2011 %00:%Oct

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

More
12 years 11 months ago #56843 by Simon Wells
Replied by Simon Wells on topic Re: DateTime::__construct() [datetime.--construct]:
Hi

Sorry, but I dont really understand your question.

Do you mean, when you create or edit a K2 item and change the Created or Start/Finishing publishing date, it is only show date format and not date and time format?

I checked this in Joomla 1.5.23 and K2 v2.4.1 and if you change the Created of Start/Finishing publishing date then the time is added.

If so, I would suggest for the time being simply add the time manually in format as 06:34:09 H:M:S

I have logged the issue I found.

Regards,

Simon

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

  • mimi72
  • mimi72's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago - 12 years 11 months ago #56844 by mimi72
it happen when you create or edit articles, always time, but always time, the only way is put like you say manual this format 12-10-2011, but is very "disturb" when you have a lot of articles... i hope you can tell me something, in joomla 1.6 with old versión of k2 all was perfect, with joomla 1.7 + last versión K2 have this problem.. last night i install a new copy of joomla 1.7 with only module k2, and is the same thing.


the error is :

500 - Ha ocurrido un error.

DateTime::__construct() [datetime.--construct]: Failed to parse time string (Domingo, 16 Octubre 2011) at position 0 (D): The timezone could not be found in the database

posible the language spanish language have a error with variable date¿?

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

  • mimi72
  • mimi72's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #56845 by mimi72
is the same error like this old post:

community.getk2.org/forum/topics/k2-25-beta-on-joomla-16-date?commentId=3536014%3AComment%3A298077


and if you see, this guy seem spanish so...

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

More
12 years 11 months ago #56846 by Simon Wells
Replied by Simon Wells on topic Re: DateTime::__construct() [datetime.--construct]:
Please submit this as a bug, click here .
You may also copy the URL of this thread when you submit as evidance.

Thanks for bringing this up.

Regards,

Simon

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

More
12 years 11 months ago - 12 years 11 months ago #56847 by Sándor Balikó
Replied by Sándor Balikó on topic Re: DateTime::__construct() [datetime.--construct]:
There is two different time showing setting, one for the backend and one for the frontend. I got a similar error, when I saved an item its creation date is always "1999.11.30 01:00:00".

But, first thing first.

I'm a coordinator/maintaine of the hungarian language, so first I modified all of the date and time settings, according to hungarian grammar.

There is four ini files, where you can modify date and time settings. Backend, frontend, comment and content ini. The original settings is this:
K2_DATE_FORMAT="%d/%m/%Y - %H:%M"
K2_DATE_FORMAT_CALENDAR="%Y-%m-%d %H:%M:%S"
K2_DATE_FORMAT_LC2="%A, %d %B %Y %H:%M"
K2_DATE_FORMAT_LC="%A, %d %B %Y"

I modified all of it to the hungarian grammar: year, month, day, and all hypen to point.
K2_DATE_FORMAT="%Y.%m.%d. %H:%M"
K2_DATE_FORMAT_CALENDAR="%Y.%m.%d. %H:%M:%S"
K2_DATE_FORMAT_LC="%Y. %B %d. %A"
K2_DATE_FORMAT_LC2="%Y. %B %d. %A %H:%M"

But after this if I saved or modified an item, the creation and modified date always is "1999.11.30 01:00:00".

So what I did is I reverted the modification, but only on the backend. This is what I got now:
K2_DATE_FORMAT="%Y-%m-%d %H:%M"
K2_DATE_FORMAT_CALENDAR="%Y-%m-%d %H:%M:%S"
K2_DATE_FORMAT_LC2="%Y. %B %d. %A %H:%M"
K2_DATE_FORMAT_LC="%Y. %B %d. %A"

FORMAT and FORMAT_CALENDAR only, the rest of it are ok. I checked it and finally it works. (Note: the separator is not hypens just points) Probably the backend date and time setting not meant to be changed.

I checked the spanish backend.ini and I found the almost the same:
K2_DATE_FORMAT="%d/%m/%Y - %H:%M"
K2_DATE_FORMAT_CALENDAR="%Y-%m-%d %H:%M:%S"

Remove the provost "/" and change it to hypens (as in the CALENDAR), then check it on your server. I'm not sure its helps, but for me, it works. In the original english backend file are the same, but who knows.
Attachments:

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

  • mimi72
  • mimi72's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #56848 by mimi72
Ok, after try a lot thing, i ve thebackend working date with versión 2.4 from es-es.com_k2.ini

but in frontend, still all articles like this format:

%PM, %16 %886 %2011 %20:%Oct

the same in comments:

%PM, %16 %953 %2011 %21:%Oct publicado por yf

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

More
12 years 11 months ago #56849 by Sándor Balikó
Replied by Sándor Balikó on topic Re: DateTime::__construct() [datetime.--construct]:
I found these on the spanish joomla translation:
Log in  or Create an account to join the conversation.

  • mimi72
  • mimi72's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #56850 by mimi72
for spanish people:

es.getk2.org/foru/media/kunena/attachments/86/spanish_K2_v2.5_svn.zip


is the good files for date/calendar...

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