Forums

Date problem

TheHacker 29 Sep, 2008
I have a small date problem,
you can see it on picture below,
When my site is on english it is ok, but when i switch it to my language i lose day and month.
i'm using latest joomla version 1.5.7 and it's tested on local server (WAMP)
Max_admin 29 Sep, 2008
Hi, please open this file : plugins/content/ChronoComments.php and find this line :

'datetime' => '<a href="#commentID'.$commentx->id.'">'.strftime(JText::_( 'DATETIMEFORMAT' ),strtotime($commentx->datetime)).'</a>', 


make it :

'datetime' => '<a href="#commentID'.$commentx->id.'">'.utf8_encode(strftime(JText::_( 'DATETIMEFORMAT' ),strtotime($commentx->datetime))).'</a>', 


now open the comments page, does it show things correctly ? make sure all caches are cleared!

Let me know!

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
TheHacker 29 Sep, 2008
i have that code on 2 lines >166 and 222
i tried changing them both and one at the time and i'm still getting ????????? 29 ????????? 2008, 21:27
TheHacker 29 Sep, 2008
hmmm, strange when i switched template i got day and month names but in english...and language is set for my language...
firs temlate is JA Barite, and second one is JA_Purity that is displaying it in english, and now i tried milkyway and he also displays ??????
Max_admin 29 Sep, 2008
Lets change the line above to :

'datetime' => '<a href="#commentID'.$commentx->id.'">'.JHTML::_('date', $commentx->datetime, JText::_('DATE_FORMAT_LC2')).'</a>', 


let me know!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
TheHacker 29 Sep, 2008
Worked🙂
thnx for quick reply

Best regards,

Nenad
Max_admin 29 Sep, 2008
Thanks for letting me know, I fixed this in the new release!🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
TheHacker 29 Sep, 2008
i have one more minor bug....when i posted new comment i had ?????? again and when i refreshed page date and time was wrong...
take a look at the picture.
Max_admin 29 Sep, 2008
yes, same changes will need to be done to components/com_chronocomments/chronocomments.php

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
TheHacker 29 Sep, 2008
thnx again for quick reply,
and i hope all will be fixed in new version.

Best regards🙂
This topic is locked and no more replies can be posted.