From: Kay Sievers Date: Sat, 30 Apr 2005 12:08:40 GMT Subject: Re: Trying to use AUTHOR_DATE Message-ID: <1114862920.17673.1.camel@localhost.localdomain> In-Reply-To: <1114859594.24014.60.camel@localhost.localdomain> On Sat, 2005-04-30 at 12:13 +0100, 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? Yes, some have half-hour offsets: http://www.timeanddate.com/library/abbreviations/timezones/au/nft.html Kay