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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Sat Apr 30 22:09:36 2005
This archive was generated by hypermail 2.1.8 : 2005-04-30 22:09:37 EST