uddeim displays wrong time

14 years 4 days ago #133044 by sohoprospecting
uddeim displays wrong time was created by sohoprospecting
We are using uddeim in a joomla 1.5 installation.
All the messages sent are eight hour behind our current timezone.

We are located in California and even that our server is in Arizona (two hours ahead) I set php default timezone at .htaccess using: php_value date.timezone America/Los_Angeles.

PHP date function and date_default_timezone_get are displaying the right information.

Our joomla instance is set to GMT -8 (US Pacific Time), and it displays the right time.

In uddeim configuration Adjust timezone is set to zero. And we want to keep it this way so we know the whole environment is correct.

---
PHP - 5.2.14 / Joomla - 1.5.20 / CB - 1.2.3

Please Log in to join the conversation.

14 years 4 days ago #133046 by slabbi
Replied by slabbi on topic Re:uddeim displays wrong time
Correct the timezone in uddeIM backend.

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

Please Log in to join the conversation.

14 years 4 days ago #133063 by drdehart
Replied by drdehart on topic Re:uddeim displays wrong time
Hi Slabbi,
I work with the previous poster. We have adjusted the timezone on the live server as a temporary measure, but are concerned that there is something else wrong, since we have never had to do this on previous installations.

Do you have any thoughts on what may be causing this 6-hour offset? Or maybe a little info about what factors are involved and how the component calculates the time?

Please Log in to join the conversation.

14 years 3 days ago #133067 by slabbi
Replied by slabbi on topic Re:uddeim displays wrong time
The component uses PHP's time function to get the time and corrects it with Joomla's timezone.

Ususally the server should be set to UTC+0, so in addition with Joomla's timezone the correct time should be displayed.

Unfortunately some servers are set to local time, so you have either to use a different correction factor in Joomla or in uddeIM backend.

The calculation is done like that:
$now = time() + ($joomla_time_offset + $uddeim_time_offset) * 3600;

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

Please Log in to join the conversation.

14 years 3 days ago #133071 by drdehart
Replied by drdehart on topic Re:uddeim displays wrong time
Got it! Thanks!

Please Log in to join the conversation.

13 years 6 months ago #145247 by drdehart
Replied by drdehart on topic Re:uddeim displays wrong time
We are now on joomla 1.5.21 using uddeim 2.0 and noticing that uddeim is not adjusting the message time based on the user time zone. According to the formula you posted previously ($now = time() + ($joomla_time_offset + $uddeim_time_offset) * 3600), uddeim does not adjust based on the actual user's time zone setting.

Are there any plans to incorporate this? We have user complaints now.

Please Log in to join the conversation.

Moderators: beatnantslabbikrileon
Time to create page: 0.190 seconds

Facebook Twitter LinkedIn