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

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

           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()."

      Jeremy Prior  <jez 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]