[Haifux] Fun with timezones in Linux

2009-04-18 Thread Ohad Lutzky
Hello folks,

I've recently been dealing with an odd timezone issue at work, which has to
do with daylight savings time. I've published a blog post about it, and I'd
very much appreciate any input you might have.
http://blog.lutzky.net/2009/04/18/timezones-are-fickle/
Many thanks!

-- 
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
be.
- William Hazlitt

Ohad Lutzky
___
Haifux mailing list
Haifux@haifux.org
http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux


Re: [Haifux] Fun with timezones in Linux

2009-04-18 Thread Tzafrir Cohen
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 to
 do with daylight savings time. I've published a blog post about it, and I'd
 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 | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
ICQ# 16849754 || friend
___
Haifux mailing list
Haifux@haifux.org
http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux


Re: [Haifux] Fun with timezones in Linux

2009-04-18 Thread Ohad Lutzky
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 tzaf...@cohens.org.ilwrote:

 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
 to
  do with daylight savings time. I've published a blog post about it, and
 I'd
  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 | tzaf...@jabber.org | VIM is
 http://tzafrir.org.il || a Mutt's
 tzaf...@cohens.org.il ||  best
 ICQ# 16849754 || friend
 ___
 Haifux mailing list
 Haifux@haifux.org
 http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux




-- 
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
be.
- William Hazlitt

Ohad Lutzky
___
Haifux mailing list
Haifux@haifux.org
http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux