Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

(SOLVED) Time setings

  • jpl1953
  • jpl1953
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #65701 by jpl1953
Replied by jpl1953 on topic Re:Time setings
I still cant get this to work properly in uddeIM.
My server is set at CST (UTC -06:00) and I am in London UK. I am using Joomla 1.5.2 and under Global Settings i have it set to UTC 00:00.

If I write a new Article Joomla gives it the correct time stamp for the UK.
If I post a topic in Fireboard it also gets a correct time stamp for the uk.

If I send a PM in uddeIM i get it time stamped 6 hours behind that is the time stamp takes the time from the server and not from Joomla.

I have tried changing things as suggested but no luck it remains firmly time stamped with the time of the server.

Its driving me mad :(

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 #65703 by slabbi
Replied by slabbi on topic Re:Time setings
Ok, when your server is located at UTC-6, then time() will return a timestamp of that location.

So you have to set Joomla to UTC-6, so uddeIM can correct the time by adding +6 hours. I wonder why the article timestamp is correct, when the server time is UTC-6 and your timezone is +0.

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

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

  • jpl1953
  • jpl1953
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #65704 by jpl1953
Replied by jpl1953 on topic Re:Time setings
I am sorry but i still dont understand this
In my Global settings in Joomla on the server tab I have set it to UTC00:00 because I am in London.
So where do I set joomla to UTC-6 and how do i do it
Sorry for being a bit thick but I am new to this
Thanks

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 #65706 by slabbi
Replied by slabbi on topic Re:Time setings
Please try to set your timezone to UTC-6 since your server is NOT in London.

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 #65709 by slabbi
Replied by slabbi on topic Re:Time setings
This is from Joomla Help page:

Locale Settings

Time Zone. This tool sets the current date and time. The set time should be where the site's server is located. The default setting is (UTC 00:00) Western Europe Time, London, Lisbon, Casablanca.


So maybe this is your problem.

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

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 #65710 by willh20
Replied by willh20 on topic Re:Time setings
slabbi wrote:

I doubt that this is correct since time() returns a timestamp in seconds and $mosConfig_offset is mesaured in hours. So 3600 is the correct value here. You can adjust the time by increasing or decreasing the offset only, e.g.

Code:



$rightnow=time()+(($mosConfig_offset + adjustValueHere )*3600);


slabbi,

Again sir you are a tremendous help. While the hacked code was working for me, your suggestion I believe is a much cleaner solution. I changed line 82 in admin.shared.php to

[code:1]$rightnow=time()+(($mosConfig_offset + 8 )*3600);[/code:1]

This returns the correct time for all private messages. Thanks!B) :)

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum