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.
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
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.
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