×

Notice

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

TOPIC: Once again... time offset / Timezone wrong

Once again... time offset / Timezone wrong 13 years 2 weeks ago #14405

  • X-Bit
  • X-Bit's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 8
Hello @all!

I am aware, that this is not a new problem, but I may not solve it in a correct way.
Using:
Joomla 1.5.24
CComments 4.2.1

I did set the time-offset in the global configuration correctly, which would be UTC +1 and even inserted "SetEnv TZ Europe/Zurich" in to my .httaccess. Still, the comments show up one hour delayed, meaning that posting a comment at 12:00 local time shows up as 11:00.
I am aware that this might be corrected at the profil-level of each user which would correct the problem... BUT... this has to be changed twice a year regarding daylight saving time, which is not applicable!

Is there any way to nail down the time only using Joomla offset? As we do small competitions using the CComments, we would be satisfied to show local time only.

Thanks for any feedback!

Once again... time offset / Timezone wrong 13 years 2 weeks ago #14442

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there,
Wasn't there a joomla extension/plugin that was fixing the offset problem for joomla and for another third party components?

I'm not sure if this is the plugin that I saw before: extensions.joomla.org/extensions/hosting-a-servers/servers/9268 but I know that there was a plugin that was solving this problem...

Please let me know if this plugin helps.
Daniel

Once again... time offset / Timezone wrong 13 years 2 weeks ago #14448

  • X-Bit
  • X-Bit's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 8
Hello Daniel!

Thanks for your reply. Regarding the articles I already changed the "created" time to not interfere with the offset, so this part is solved. Anyway, I will have a look at this extension, thanks for the tip!

What I actually would like to know, is where at the code of CComment I could set a global offset so it wouldn´t take it anymore from the user profile. I combed through some of the 3.000 profiles we have and found out that 99% of the users did not set any timezone! It would be a big help to just change the offset for CCcoments to the Joomla system offset.

Appreciating any feedback and keep it up!

Once again... time offset / Timezone wrong 13 years 2 weeks ago #14452

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
components/com_commment/joscomment/utils.php you have a getLocalDate function at line 579. If you want to set the locale, then you can do it there.

Daniel
  • Page:
  • 1
Time to create page: 0.107 seconds