From: H. Peter Anvin Date: Sat, 30 Apr 2005 23:14:59 GMT Subject: Re: Trying to use AUTHOR_DATE Message-ID: <42741173.9040507@zytor.com> In-Reply-To: <1114859594.24014.60.camel@localhost.localdomain> David Woodhouse wrote: > On Sat, 2005-04-30 at 12:53 +0200, Edgar Toernig wrote: > >>+ tm = localtime(&now); /* get timezone and tm_isdst */ >>+ offset = -timezone / 60; >>+ if (tm->tm_isdst > 0) >>+ offset += 60; > > > Some locales have DST offsets which aren't 60 minutes, don't they? > Correct. I believe South Australia is among them. -hpa