Does not display correct time...

eendii 11 Nov, 2008
My Joomla server is set to timezone UTC + 7.

For every comments inserted/saved in articles, when displayed from "Comments Manager", column "DateTime" display the correct time comment was saved. But if viewed from articles, the time displayed with the comment is not correct, it is the saved time + 7 hours.

How do I fix this??

Please help.
kelebekce 11 Nov, 2008
anyone help this problem admin component (Chrono Comments - Comments Manager) time it is true but site Comments time UTC +2😟
Max_admin 11 Nov, 2008
Hi kelebekce,

in the global config of Joomla, did you set the correct time zone ? ChronoCommenst will use the Joomla time!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
eendii 12 Nov, 2008
Global config of Joomla timezone is set to correct timezone (mine is UTC + 7)
Time displayed is already correct for joomla and joomla administrator... including chronocomments if viewed from "Comments Manager".

But when comments are displyed in articles, the comment time is added with 7.
I think maybe the load comment function treat the time as UTC and added another 7 to it.

How do I fix this?
kelebekce 12 Nov, 2008
[attachment=0]11.jpg[/attachment][attachment=2]22.jpg[/attachment][attachment=1]33.JPG[/attachment]
comment time it's true when i set UTC +0 but my site time UTC +2😟
Max_admin 12 Nov, 2008
Hi,

at components/com_chronocomments/chronocomments.php

find:
JHTML::_('date', $commentx->datetime, JText::_( 'DATETIMEFORMAT' ))


replace with :
JHTML::_('date', $commentx->datetime, JText::_( 'DATETIMEFORMAT' ), 0)


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.
eendii 12 Nov, 2008
Still the same. Doesn't seem to change anything...

Does that work on yours, kelebekce?
kelebekce 12 Nov, 2008
Thanks Max

old comment time not true but new comment time is true.πŸ™‚

Eendii write new comment
kelebekce 12 Nov, 2008
Solve the problem eendii

1-(components/com_chronocomments/chronocomments.php) line 290-665-723 (3 times)
find:
JHTML::_('date', $commentx->datetime, JText::_( 'DATETIMEFORMAT' ))

replace with:
JHTML::_('date', $commentx->datetime, JText::_( 'DATETIMEFORMAT' ), 0)


2-(plugins/content/ChronoComments.php) line 217-275 (2 times)
find:
JHTML::_('date', $commentx->datetime, JText::_( 'DATETIMEFORMAT' ))

replace with:
JHTML::_('date', $commentx->datetime, JText::_( 'DATETIMEFORMAT' ), 0)


change 5 times and it's work lightbulb
Max_admin 12 Nov, 2008
Good!! πŸ™‚
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
warriorgov79 13 Nov, 2008
Hi everyone,

This fix sets my time in the component and Latest Comments module to Eastern Standard. My UTC in backend is -10. My workaround for the component is to change the "0" to "-5". However, I'm afraid I'll have to change it again manually to accomodate Daylight Savings Time as my time zone does not change with the seasons. Any suggestions?

Joomla 1.5.8
Firefox 3.0.3
Firebug 1.1.0b12
Web Developer 1.1.6

Aloha,
warriorgov79
Max_admin 13 Nov, 2008
Hi warriorgov79,

Why should you add -5 if your time is -10, how are your dates looking at both admin and frontend without this change ?

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
warriorgov79 13 Nov, 2008
Without the mods, my time in the backend is 5 hours ahead; frontend is 5 hours behind.
Max_admin 13 Nov, 2008
Hi Hi warriorgov79,

at the next version I will add a fix for this issue and you can easily upgrade!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
warriorgov79 13 Nov, 2008
Mahalo (thanks) Max! ChronoComments is simply the best! I appreciate all that you're doing to help us noobs. I'll wait for your next release to install on my beta site. In the meantime, I'll keep playing with the current version in my sandbox. Aloha! warriorgov79 out...
eendii 14 Nov, 2008
Hooray...

Thanks kelebekce.... Thanks Max...!!
It works now. :mrgreen:
Max_admin 14 Nov, 2008
Thanks all! πŸ™‚
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ColinF 15 Jan, 2009
Hi I just installed ChronoComments and got it up and running. I noticed my time was off by 1 hour, so I tried this fix thinking it was the same issue. I replaced the code in the 5 locations listed in the previous post. Unfortunately, this did not fix anything. I tried making new comments and they are still off by 1 hour. I double checked the server time zone in the global settings and it is set correctly. Any ideas?
Max_admin 15 Jan, 2009
Hi Colin,

Do you have daylight saving now ? may be change the 0 in the fixes to 1 or -1 and see ?

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ColinF 23 Jan, 2009
Thanks. That did it.
Maxvn 09 Feb, 2009
thank kelebekce
But GMT +7 , it's still incorrect time 😒
Max_admin 09 Feb, 2009
Hi Maxvn,

just change the number in the line of code and test until you get it correct, I will fix this in the next release!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Maxvn 10 Feb, 2009
Thank Max,
I waiting for your new version for so longπŸ˜€
This topic is locked and no more replies can be posted.