Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: AT TIME ZON...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 15979 of 16557
Post > Topic >>

Re: AT TIME ZONE and DST in UTC<->CET conversion

by tgl@[EMAIL PROTECTED] (Tom Lane) Jul 5, 2008 at 11:21 AM

Gregory Stark <stark@[EMAIL PROTECTED]
> writes:
> ISTM this is the one that's wrong. "CET" is standard time, it, GMT+1.

> If you want a timezone which switches between CET and CST automatically
you
> should use something like Europe/Paris.

Well, actually he *is* using such a zone:

regression=# select * from pg_timezone_names  where name = 'CET';
 name | abbrev | utc_offset | is_dst 
------+--------+------------+--------
 CET  | CEST   | 02:00:00   | t
(1 row)

But

regression=# select * from pg_timezone_abbrevs  where abbrev = 'CET';
 abbrev | utc_offset | is_dst 
--------+------------+--------
 CET    | 01:00:00   | f
(1 row)

The problem is that one of these two statements is using the abbrev
meaning and the other is using the timezone meaning.

We don't have much control over the zone definition, so I'm thinking
maybe the abbrev should be removed from the tznames lists.  But that
seems a bit sucky too.  Does anyone have any idea if the zic folk would
be responsive to a complaint that defining a timezone with the same
name as an abbreviation is a bad idea?

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 2 Posts in Topic:
Re: AT TIME ZONE and DST in UTC<->CET conversion
stark@[EMAIL PROTECTED]   2008-07-05 13:05:31 
Re: AT TIME ZONE and DST in UTC<->CET conversion
tgl@[EMAIL PROTECTED] (T  2008-07-05 11:21:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 13:16:40 CDT 2008.