pgsql-server: Still another try at matching system timezone nicely.

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Still another try at matching system timezone nicely.
Date: 2004-07-31 19:12:17
Message-ID: 20040731191217.000EBD1B2BD@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Still another try at matching system timezone nicely. On non-Windows
machines, break tie scores by preferring shorter zone names over longer;
for names of equal length, prefer the alphabetically first name. This
yields for example 'EST5EDT' not 'America/New_York' for US eastern time.
On Windows, abandon the whole concept of inspecting the detailed behavior
of the system TZ library, because it doesn't bear inspection :-(. Instead
use a hardwired mapping table to select our zone name based on the
result of strftime %Z output. Windows code from Magnus Hagander.

Modified Files:
--------------
pgsql-server/src/timezone:
pgtz.c (r1.20 -> r1.21)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/timezone/pgtz.c.diff?r1=1.20&r2=1.21)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2004-07-31 20:00:27 pgsql-server: Escape backslashes from translation message rather than
Previous Message Tom Lane 2004-07-31 17:57:12 pgsql-server: For EXEC_BACKEND case, BootstrapMain needs to recompute