pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: Christian Cryder <c.s.cryder@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Timestamp Conversion Woes Redux
Date: Fri, 22 Jul 2005 09:42:34 -0400
Message-ID: <28984.1122039754@sss.pgh.pa.us> (raw)
In-Reply-To: <27F3B08D-C3A4-4ED2-B360-2412A835B6F9@fastcrypt.com>
References: <90876a9e05071810503606d431@mail.gmail.com>
	<16335.1121714809@sss.pgh.pa.us>
	<10C90079-DD0A-43D7-9389-7486803F0AB1@fastcrypt.com>
	<42DC37AC.5030704@opencloud.com>
	<C36F2D5F-093E-489C-8D6F-A67B746EA6C8@fastcrypt.com>
	<42DCF0C9.4030501@opencloud.com>
	<23396.1121781259@sss.pgh.pa.us>
	<392278AB-987F-40CF-B59D-DDF53B9A4ACF@fastcrypt.com>
	<Pine.BSO.4.56.0507191100110.68@leary.csoft.net>
	<90876a9e050719093261c52c64@mail.gmail.com>
	<Pine.BSO.4.56.0507200109220.31980@leary.csoft.net>
	<42DDF238.8090601@opencloud.com>
	<Pine.BSO.4.56.0507201125190.5339@leary.csoft.net>
	<42DEDB5A.9000803@opencloud.com>
	<26535.1121903232@sss.pgh.pa.us>
	<42DEEA63.6090507@opencloud.com>
	<26982.1121906793@sss.pgh.pa.us>
	<42E03BB8.7090101@opencloud.com>
	<24343.1121993659@sss.pgh.pa.us>
	<42E0529E.7060807@opencloud.com>
	<27F3B08D-C3A4-4ED2-B360-2412A835B6F9@fastcrypt.com>

Dave Cramer <pg@fastcrypt.com> writes:
> One issue I have is that the server returns some time zones in  
> lowercase.

> ie EST -> est
>      EST5EDT -> est5edt

I think that in some contexts the case you will get back is what you
give in the SET command.  So do
	set timezone = 'EST5EDT';
not
	set timezone = EST5EDT;
(the latter is downcased as if it were an identifier).

			regards, tom lane



view thread (92+ messages)  latest in thread

Message-ID: <28984.1122039754@sss.pgh.pa.us>
Permalink:  ../28984.1122039754@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28984.1122039754@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, pg@fastcrypt.com, oliver@opencloud.com, books@ejurka.com, c.s.cryder@gmail.com
  Subject: Re: Timestamp Conversion Woes Redux
  In-Reply-To: <28984.1122039754@sss.pgh.pa.us>
  References: <90876a9e05071810503606d431@mail.gmail.com> <16335.1121714809@sss.pgh.pa.us> <10C90079-DD0A-43D7-9389-7486803F0AB1@fastcrypt.com> <42DC37AC.5030704@opencloud.com> <C36F2D5F-093E-489C-8D6F-A67B746EA6C8@fastcrypt.com> <42DCF0C9.4030501@opencloud.com> <23396.1121781259@sss.pgh.pa.us> <392278AB-987F-40CF-B59D-DDF53B9A4ACF@fastcrypt.com> <Pine.BSO.4.56.0507191100110.68@leary.csoft.net> <90876a9e050719093261c52c64@mail.gmail.com> <Pine.BSO.4.56.0507200109220.31980@leary.csoft.net> <42DDF238.8090601@opencloud.com> <Pine.BSO.4.56.0507201125190.5339@leary.csoft.net> <42DEDB5A.9000803@opencloud.com> <26535.1121903232@sss.pgh.pa.us> <42DEEA63.6090507@opencloud.com> <26982.1121906793@sss.pgh.pa.us> <42E03BB8.7090101@opencloud.com> <24343.1121993659@sss.pgh.pa.us> <42E0529E.7060807@opencloud.com> <27F3B08D-C3A4-4ED2-B360-2412A835B6F9@fastcrypt.com> <28984.1122039754@sss.pgh.pa.us>

* 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