pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vadim Nasardinov <vadimn@redhat.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Java's set of timezone names
Date: Wed, 20 Jul 2005 16:20:41 -0400
Message-ID: <200507201620.41623@vadim.nasardinov> (raw)
In-Reply-To: <EC194DA2-0AB4-45CA-B4D1-29671FEFFAB4@fastcrypt.com>
References: <90876a9e05071810503606d431@mail.gmail.com>
	<200507201510.28661@vadim.nasardinov>
	<EC194DA2-0AB4-45CA-B4D1-29671FEFFAB4@fastcrypt.com>

On Wednesday 20 July 2005 15:42, Dave Cramer wrote:
> I think as John pointed out though there are some issues with using
> named TimeZones.

Kris rebutted that comment.

> Is there a way to get the servers timezone info from the server ?

Good question.

Based upon a very cursory reading of the documentation, it seems to be
that PostgreSQL uses a hardcoded internal list of time zones for
dealing with timezone *input*, but it uses the underlying OS's
facilities for dealing with timezone *output*.  But then again, the
docs seems to have changed between 7.4 and 8.0.  For example, in 7.4:

  http://www.postgresql.org/docs/7.4/static/datatype-datetime.html

  PostgreSQL uses your operating system's underlying features to
  provide output time-zone support,

However, this sentence seems missing from 8.0:

  http://www.postgresql.org/docs/8.0/static/datatype-datetime.html

The docs for 7.4 provide a list of timezone abbreviations that
PostgreSQL recognizes:

  http://www.postgresql.org/docs/7.4/static/datetime-keywords.html

The 8.0 docs, too, provide the list of abbreviations but also a list
of unabbreviated timezone names:

  http://www.postgresql.org/docs/8.0/static/datetime-keywords.html
  
These seem to be hardcoded.



view thread (8+ messages)  latest in thread

Message-ID: <200507201620.41623@vadim.nasardinov>
Permalink:  ../200507201620.41623@vadim.nasardinov/
Also on:    postgresql.org/message-id/200507201620.41623@vadim.nasardinov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: vadimn@redhat.com
  Subject: Re: Java's set of timezone names
  In-Reply-To: <200507201620.41623@vadim.nasardinov>
  References: <90876a9e05071810503606d431@mail.gmail.com> <200507201510.28661@vadim.nasardinov> <EC194DA2-0AB4-45CA-B4D1-29671FEFFAB4@fastcrypt.com> <200507201620.41623@vadim.nasardinov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox