timezone abbreviation in timestamp string input - Mailing list pgsql-general

From David Garamond
Subject timezone abbreviation in timestamp string input
Date
Msg-id 41723F49.5000907@zara.6.isreserved.com
Whole thread Raw
Responses Re: timezone abbreviation in timestamp string input
List pgsql-general
When a timestamp string input contains a timezone abbreviation (CDT,
PST, etc), which timezone offset is used? The input date's or today
date's? The result on my computer suggests the latter.

# create table ts (ts timestamptz);
# insert into ts values ('2004-10-17 00:00:00 CDT'); -- UTC-5
# insert into ts values ('2004-11-17 00:00:00 CDT'); -- UTC-6
# select ts at time zone 'utc' from ts;
       timezone
---------------------
  2004-10-17 05:00:00
  2004-11-17 05:00:00
(2 rows)

If this is true, then perhaps forbid timezone abbreviation in input
string, or emit warning about this?

--
dave


pgsql-general by date:

Previous
From: Steven Klassen
Date:
Subject: Re: Newbie table definition question
Next
From: Ken Tozier
Date:
Subject: Re: Newbie table definition question