[imp] Timezone problem -- fix

paragg at konark.ncst.ernet.in paragg at konark.ncst.ernet.in
Sat Mar 22 08:35:44 PST 2003


> 
> 
> So, if I set Time zone to Default, shown time in compose window is
> right,
> but shown time in INBOX is wrong. And if I set Time zone to
> Europe/Ljubljana, shown time in compose is wrong, but shown time in
> INBOX is
> right.
> 
I had similar problems with the following config in
the Indian Time Zone (IST - GMT+0530)-

OS - Red Hat 8
Horde: 2.1 
IMP: 3.1 
Turba: 1.1 
Kronolith: 1.0 
Mnemo: 1.0 
Nag: 1.0
Apache - httpd-2.0.40-8 
php-4.2.2-8.0.5

and also with -

OS - Solaris 8
Horde: 2.1 
IMP: 3.1 
Turba: 1.1 
Kronolith: 1.0 
Mnemo: 1.0 
Nag: 1.0 
Default Solaris Apache - VERSION:  11.8.0,REV=2000.01.08.18.12
PHP - 4.2.3

I found that compose.php sends a timestamp as IST in the mail
headers which mailbox.php and message.php is unable to read.
If I manually change the timestamp to +0530 in /var/mail/username,
the mailbox.php and message.php is able to display the messages.

Therefore, on Red Hat 8, I change every occurance of " date('r') " with 
" strftime('%a, %e %b %Y %T %Z') " in compose.php, and it works
just fine;

And on Solaris 8, I change every occurance of " date('r') " with 
" strftime('%a, %e %b %Y %T +0530') " in compose.php and it works
just fine. (The Red Hat solution does not work here)

Please refer to my posts sent this month with the subjectline -
"Problem with Date Headers - Indian Time Zone".

I feel this a bug in php for some time zones or there is some problem
in compose.php.

Regards,
Parag Godkar




More information about the imp mailing list