Skip to Content Skip to Menu

(SOLVED) Time setings

  • jpl1953
  • jpl1953
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #65156 by jpl1953
(SOLVED) Time setings was created by jpl1953
i am very new to all this so please forgive me - I have searched and cannot find the solution. The time stamp on all private messages is that of my server rather than where I am located. The joomla site shows the correct time as I have the offset correct in global settings, also I have set the offset in my fireboard options but I cannot get the time right in PM's - any ideas where I need to look or what I need to do.
Thanks

Post edited by: slabbi, at: 2008/06/15 14:26

Please Log in or Create an account to join the conversation.

  • willh20
  • willh20
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #65639 by willh20
Replied by willh20 on topic Re:Time setings
I am glad I am not the only one to have a similar problem. I am using uddeim with Fireboard and CB. Time settings are correct in all areas of the site save for the private messages. They are stamped 8 hours behind everything else. I cannot find where to set timezone or time offsets in the admin area?

Could anyone suggest where these setting are?

Thank you,

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 5 months ago #65642 by slabbi
Replied by slabbi on topic Re:Time setings
Strange, since I use the Joomla timezone to correct the server time (admin.shared.php):

[code:1]function uddetime() {
global $mosConfig_offset;
$rightnow=time()+($mosConfig_offset*3600);
return $rightnow;
}[/code:1]

You can try to change it to "$rightnow=time();" but I wonder why this does not work on your system.

Could you check what the exact server time is and what the setting of the Joomla timezone is?

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 5 months ago #65643 by slabbi
Replied by slabbi on topic Re:Time setings
btw:

That is exactly the way Joomla uses to get the correct time:

Example from content.php:

[code:1]03782: function mosCurrentDate( $format="" ) {
03783: global $mosConfig_offset;
03784: if ($format==""«») {
03785: $format = _DATE_FORMAT_LC;
03786: }
03787: $date = strftime( $format, time() + ($mosConfig_offset*60*60) );
03788: return $date;
03789: }
[/code:1]

So maybe the problem is the server time or local timezone setting.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • willh20
  • willh20
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #65647 by willh20
Replied by willh20 on topic Re:Time setings
slabbi, thank you for your help. I changed the suggested code and that changes the timestamps to the server time.

After some trial and error I found that this setting gives me the correct timestamps.

[code:1]$rightnow=time()-($mosConfig_offset*2160);[/code:1]

This must be due to the fact that I want my time settings in UTC -5:00 and my server sits in UTC -8:00

Thank you very much for your help.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 5 months ago #65649 by slabbi
Replied by slabbi on topic Re:Time setings
Usually you correct the server time in the global settings of Joomla.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum