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

2008-08-23 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> The problem is that one of these two statements is using the abbrev >> meaning and the other is using the timezone meaning. > Is this a TODO? We already fixed it: 2008-07-07 14:09 tgl * src/backend/utils/adt/: date.c, times

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

2008-08-22 Thread Bruce Momjian
Tom Lane wrote: > Gregory 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

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

2008-07-05 Thread Tom Lane
Gregory 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

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

2008-07-05 Thread Gregory Stark
Jaromír Talíř <[EMAIL PROTECTED]> writes: > postgres# select '2008-06-01 10:10:10 UTC' AT TIME ZONE 'CET'; > timezone > - > 2008-06-01 12:10:10 ISTM this is the one that's wrong. "CET" is standard time, it, GMT+1. If you want a timezone which switches between CET

[GENERAL] AT TIME ZONE and DST in UTC<->CET conversion

2008-07-05 Thread Jaromír Talíř
First, if I do conversion from UTC to CET and back when a timestamp is OUTSIDE of daylight saving period, it's correct: postgres# select '2008-01-01 10:10:10 UTC' AT TIME ZONE 'CET'; timezone - 2008-01-01 11:10:10 postgres# select '2008-01-01 11:10:10 CET' AT TIME