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.
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.
anyone help this problem admin component (Chrono Comments - Comments Manager) time it is true but site Comments time UTC +2π
Hi kelebekce,
in the global config of Joomla, did you set the correct time zone ? ChronoCommenst will use the Joomla time!
Regards
Max
in the global config of Joomla, did you set the correct time zone ? ChronoCommenst will use the Joomla time!
Regards
Max
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?
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?
[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π
comment time it's true when i set UTC +0 but my site time UTC +2π
Hi,
at components/com_chronocomments/chronocomments.php
find:
replace with :
let me know!
Regards
Max
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
Still the same. Doesn't seem to change anything...
Does that work on yours, kelebekce?
Does that work on yours, kelebekce?
Thanks Max
old comment time not true but new comment time is true.π
Eendii write new comment
old comment time not true but new comment time is true.π
Eendii write new comment
Solve the problem eendii
1-(components/com_chronocomments/chronocomments.php) line 290-665-723 (3 times)
find:
replace with:
2-(plugins/content/ChronoComments.php) line 217-275 (2 times)
find:
replace with:
change 5 times and it's work lightbulb
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
Good!! π
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
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
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
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
Without the mods, my time in the backend is 5 hours ahead; frontend is 5 hours behind.
Hi Hi warriorgov79,
at the next version I will add a fix for this issue and you can easily upgrade!
Regards
Max
at the next version I will add a fix for this issue and you can easily upgrade!
Regards
Max
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...
Thanks all! π
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?
Hi Colin,
Do you have daylight saving now ? may be change the 0 in the fixes to 1 or -1 and see ?
Regards
Max
Do you have daylight saving now ? may be change the 0 in the fixes to 1 or -1 and see ?
Regards
Max
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
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
This topic is locked and no more replies can be posted.