Re: [Evolution] Bogus time



On Wed, 2002-04-10 at 13:32, Not Zed wrote:
We need to do it because we use the absolute time (with no timezone
offset), and calculate the offset based on the timezone, which doesn't
include the dst info.  *however* the code path is different for BSD vs
linux from what I can tell, and its probably using a value that isn't
equivalent.

What does 'man localtime' have to say about the tm_gmtoff field of 
struct tm?

http://www.freebsd.org/cgi/man.cgi?query=asctime&sektion=3&apropos=0&manpath=freebsd

           long tm_gmtoff; /* offset from UTC in seconds */

It also notes that "The tm_isdst and tm_gmtoff members are forced to
zero by timegm()."

jez
-- 
      Jeremy Prior  <jez netcraft com>  http://www.netcraft.com/
 Netcraft Ltd, Treenwood Ho, Rowden La, Bradford-on-Avon, BA15 2AZ. UK
       Tel: +44-1225-867932 (direct-dial)  Fax: +44-1225-867700





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]