×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Incorrect Time Displayed when comments posted...

Incorrect Time Displayed when comments posted... 16 years 1 month ago #1632

  • Richard Stubbington
  • Richard Stubbington's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 16
Hi there, this is a really basic question but I can't find in 3.2.6 !JoomlaComments how to set for the comments to display the correct time when posted. My articles display the correct time when they are posted to the site (so the site settings and server settings are asumedly correct) but I can't find anywhere in the comments config an option to change the time-zone settings to make sure correct times are shown for postings.

Any help would be gratefully appreciated!

Incorrect Time Displayed when comments posted... 16 years 1 month ago #1641

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

Incorrect Time Displayed when comments posted... 16 years 1 month ago #1642

  • Richard Stubbington
  • Richard Stubbington's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 16
I've tried the code change in utils.php but doesn't seem to be making any difference. The time at posting remains 5 hours different (earlier) to the time that the comment is actually posted.

Is a time offset configured anywhere else?

Incorrect Time Displayed when comments posted... 16 years 1 month ago #1647

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You made the time offset through Joomla configuration file?

Incorrect Time Displayed when comments posted... 16 years 1 month ago #1653

  • Richard Stubbington
  • Richard Stubbington's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 16
The only time setting I've ensured is right is that in the Joomla Site Config Server area.

I've also replaced the line of code in utils.php per the thread you pointed me towards.

Should I have made changes elsewhere?

Incorrect Time Displayed when comments posted... 16 years 1 month ago #1655

  • Richard Stubbington
  • Richard Stubbington's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 16
From looking around it would seem that JoomlaComments is using the time set on the server and not the Joomla time specified.

All my other extensions like this allow me to create an offset of the time in hours to determine the time that they should show. I just need to know how to configure this offset for JoomlaComment - I need to create an offset that adds 5 hours to the time of the server (and hence the time returned with the comments).

Can you tell me which file to use, and what code to change to do that please (as I'm not a php coder).

From what I can gather it might be to do with this line of code:

global $mosConfig_offset;
return(date($format, strtotime($strdate)+($mosConfig_offset*60*60)));


Do I need to add more '*60's or add another multiple, or something else?

Thanks,

Rich.
  • Page:
  • 1
Time to create page: 0.104 seconds