Re: Trying to use AUTHOR_DATE

From: David Woodhouse <dwmw2@infradead.org>
Date: 2005-04-30 21:13:13
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?

-- 
dwmw2

-
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.html
Received on Sat Apr 30 21:15:34 2005

This archive was generated by hypermail 2.1.8 : 2005-04-30 21:15:35 EST