Re: [SQL] Confused by timezones

2000-12-18 Thread Alessio Bragadini
Tom Lane wrote: > I'm guessing that's not a legal timezone name on your platform. > On my box I have to spell it "PST8PDT" ... note that the displayed > abbreviation is not the same as the name used to set the timezone. I used PST as an example, but it doesn't work with any other zone, including

Re: [SQL] Confused by timezones

2000-12-15 Thread Tom Lane
Alessio Bragadini <[EMAIL PROTECTED]> writes: >> You must use same names (definitions) as are used in your OS >> (an example on Linux at /usr/share/zoneinfo) > In 7.1 works. Is it supposed to work also in 7.0? Yes; as far as I know this hasn't changed... regards, tom lan

Re: [SQL] Confused by timezones

2000-12-15 Thread Tom Lane
Alessio Bragadini <[EMAIL PROTECTED]> writes: > village=# set TimeZone TO PST; I'm guessing that's not a legal timezone name on your platform. On my box I have to spell it "PST8PDT" ... note that the displayed abbreviation is not the same as the name used to set the timezone.

Re: [SQL] Confused by timezones

2000-12-15 Thread Alessio Bragadini
Karel Zak wrote: > Yes it's possible, but in freezed 7.1 *only*. It's 'TZ' and output is Thanks, on my experimental 7.1 works perfectly, another reason to switch as soon as possible. :-) > You must use same names (definitions) as are used in your OS > (an example on Linux at /usr/share/zonein

Re: [SQL] Confused by timezones

2000-12-15 Thread Karel Zak
On Fri, 15 Dec 2000, Alessio Bragadini wrote: > Sorry, I am trying to find my way in formatting timestamps for different > timezones and I am a little confused. > > [ PostgreSQL 7.0.0 on alphaev6-dec-osf4.0f, compiled by cc ] > > Let's imagine > CREATE TABLE tztest (id SERIAL, v TEXT, ts TIMES

[SQL] Confused by timezones

2000-12-15 Thread Alessio Bragadini
Sorry, I am trying to find my way in formatting timestamps for different timezones and I am a little confused. [ PostgreSQL 7.0.0 on alphaev6-dec-osf4.0f, compiled by cc ] Let's imagine CREATE TABLE tztest (id SERIAL, v TEXT, ts TIMESTAMP DEFAULT now()); How can I format a SELECT to_char(ts,'