[imp] Timezone problem -- fix

Klemen Humerca klemen at humerca.com
Sat Mar 22 09:23:08 PST 2003


I have RH 7.3 and I try to change every occurance of " date('r') " with
"strftime('%a, %e %b %Y %T %Z') " in compose.php, but it doesn't works...


Klemen Humerca

-----e-mail&web---------
 klemen at humerca.com
 www.humerca.com
 forum.humerca.com
------------------------

     .-.
     /v\    L   I   N   U   X
    // \\        >Rules<
   /(   )\
    ^^-^^
----- Original Message -----
From: <paragg at konark.ncst.ernet.in>
To: "Klemen Humerca" <klemen at humerca.com>
Cc: <imp at lists.horde.org>
Sent: Saturday, March 22, 2003 4:35 AM
Subject: Re: [imp] Timezone problem -- fix


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