Re: Timezone fun (bugs and a request)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timezone fun (bugs and a request)
Date: 2004-05-25 13:57:46
Message-ID: 200405251357.i4PDvko14127@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oliver Jowett wrote:
> Tom Lane wrote:
> > Oliver Jowett <oliver(at)opencloud(dot)com> writes:
> >
> >>Also, unless I'm missing something, shouldn't Chile (Alvaro's timezone?)
> >>be behind GMT (GMT-something) not ahead of it (GMT+something)?
> >
> >
> > Part of the confusion here is that the zone names in the zic database
> > follow POSIX rules: plus is west of Greenwich. AFAICS it's doing the
> > right thing in selecting Etc/GMT-12 for you.
>
> Ew! That's disgusting! What possessed POSIX to do this the opposite way
> to pretty much everything else?

You want ugly, look at how we find the system timezone --- we scan
forward for 14 months looking at the timezone abbreviations returned by
the operating system.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-05-25 14:05:40 Re: Timezone fun (bugs and a request)
Previous Message Bruce Momjian 2004-05-25 13:54:31 Re: pg_ctl.c