Skip to Content Skip to Menu

How do you adjust the timezone?

  • FSEconomy
  • FSEconomy
  • OFFLINE
  • Posts: 31
  • Thanks: 4
  • Karma: 0
10 years 6 months ago #242252 by FSEconomy
How do you adjust the timezone? was created by FSEconomy
Message times inside uddeIM are being displayed to my users in the server's timezone. Other components (Kunena, etc.) display correct times according to the user's timezone settings in his profile.

I have searched here, and read the FAQ - the only answer is, "Adjust Timezone" setting in the admin panel. But I don't know what to adjust it to? It is currently zero. I've tried throwing in random numbers (1,5,10, -1, -5, -10) and nothing seemed to change.

J3.2.2, K1.0.4, CB1.9.1, and uddeIM 3.3

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
10 years 6 months ago #242253 by slabbi
Replied by slabbi on topic How do you adjust the timezone?
The timezone setting does not have influence on already existing messages.
This design decision was done when Joomla was not able to handle timezone settings per user.

Maybe I will change this behavior in future but since it is not a real bug and the coding will require a lot of time I am unsure when this problem will be corrected for current Joomla versions.

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

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

  • FSEconomy
  • FSEconomy
  • OFFLINE
  • Posts: 31
  • Thanks: 4
  • Karma: 0
10 years 6 months ago - 10 years 6 months ago #242377 by FSEconomy
Replied by FSEconomy on topic How do you adjust the timezone?
Thanks for the answer, slabbi! I was experimenting by
1. Changing settings in the admin panel
2. sending myself a test message.
3. repeat, repeat, repeat.

I am simply not sure what should go into this box, nor what that value is doing. I assume that it's a number? And that it is just performing a timezone offset (2 = add 2 hours to the database timestamp)?

I finally got 3 which correctly shows the sender's timezone, but never a setting where the user saw the time in his own timezone.
Last edit: 10 years 6 months ago by FSEconomy.

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
10 years 6 months ago #242383 by slabbi
Replied by slabbi on topic How do you adjust the timezone?
It is a little bit more complex:

When a message is saved, uddeIM uses the time stamp from the OS + the offset set in the uddeIM configuration:
$savedatum = uddetime($config->timezone);


In the inbox the time is calculated this way:
$datumcell=uddeDate($themessage->datum, $config, uddeIMgetUserTZ());

It uses the message time stamp and adds the given time zone (uddeIMgetUserTZ()). In J3.0 this time zone is read from the users profile:
$JUser = JFactory::getUser();
$tz = $JUser->getParam('timezone');

This should show the correct time for the recipient but not for the sender. The sender sees the recipients' local time.

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