[Haifux] Fun with timezones in Linux
ohad at lutzky.net
Sun Apr 19 07:57:14 MSD 2009
Note that using TZ=GMT-3 has several disadvantages for me: timezone is set
incorrectly (to -10800), is_dst is not set, and the timezone abbreviation
shows up as GMT. I can get a better result with my one-liner zic source.
This has the added bonus that applications will read it on a call to tzset,
without my having to change their environment variables.
On Sun, Apr 19, 2009 at 4:46 AM, Tzafrir Cohen <tzafrir at cohens.org.il>wrote:
> On Sat, Apr 18, 2009 at 07:17:27PM +0300, Ohad Lutzky wrote:
> > Hello folks,
> > I've recently been dealing with an odd timezone issue at work, which has
> > do with daylight savings time. I've published a blog post about it, and
> > very much appreciate any input you might have.
> > http://blog.lutzky.net/2009/04/18/timezones-are-fickle/
> > Many thanks!
> "Pure" timezones with no DST mess?
> TZ=GMT-3 date
> TZ=GMT-2 date
> Sure, there are many ways you can shoot yourself in the foot.
> Tzafrir Cohen | tzafrir at jabber.org | VIM is
> http://tzafrir.org.il | | a Mutt's
> tzafrir at cohens.org.il | | best
> ICQ# 16849754 | | friend
> Haifux mailing list
> Haifux at haifux.org
Man is the only animal that laughs and weeps, for he is the only animal that
is struck with the difference between what things are and what they ought to
- William Hazlitt
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haifux