[imp] timezone problem

Klemen Humerca klemen at humerca.com
Fri Mar 21 15:02:46 PST 2003


I have this problem. If I try this input: "date" on my server I get this: 

Fri Mar 21 12:46:30 GMT+1 2003 


But when I use php function "date('r')", I get this in my browser: 

Fri, 21 Mar 2003 12:46:30 -0100 


And when I use IMP I get wrong dates. So I tried and I put "echo date('r') 
after "set the current time zone" in /imp/mailbox.php: 

/* Set the current time zone. */ 
if ($prefs->getValue('timezone') != '') { 
    putenv('TZ=' . $prefs->getValue('timezone')); 
} 

echo date('r')";


I got this:

Fri, 21 Mar 2003 14:46:30 +0100 


This time is wrong for +2 hours. Where is the problem? 

-- 

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

     .-.
     /v\    L   I   N   U   X
    // \\        >Rules<
   /(   )\
    ^^-^^






More information about the imp mailing list