🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #508

Re: Small timezone bug in KA9Q/SMTPSERV.C

#508
From: Andrew Benham
Date: Fri, 02 May 1997 00:00
24 lines
1141 bytes
>The code also fails when the offset from GMT is more than 9
>hours: that is almost at the other end of the world so probably
>not important<g>.

Another problem is that:


>        /* Are we in DST? */
>
>        if (now < dst_start || now >= std_start)
>                return (0);

assumes that   dst_start < std_start   which is only true in the Northern
Hemisphere.

E.g. if DST starts in October, and STD starts in April, then the test goes wrong.


-- 
Andrew Benham       A.D.S.Benham@nortel.co.uk
Nortel Plc, 140 Greenway, Harlow Business Park,
  Harlow, Essex CM19 5QD, United Kingdom
Tel: +44 1279 402372    Fax: +44 1279 405746
Technical Details
Message-ID: <5kcnhc$cqi@bhars12c.bnr.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <862463261snz@fokker.demon.nl> <862506921snz.8460@grempc.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,723f93803c1763df
X-Google-Attributes: gid10bb05,public
From: adsb@bnr.co.uk (Andrew Benham)
Subject: Re: Small timezone bug in KA9Q/SMTPSERV.C
Date: 1997/05/02
Message-ID: <5kcnhc$cqi@bhars12c.bnr.co.uk>
X-Deja-AN: 239002770
References: <862463261snz@fokker.demon.nl> <862506921snz.8460@grempc.demon.co.uk>
Organization: BNR Europe Ltd., Harlow, Essex, United Kingdom
Newsgroups: demon.ip.developers