pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: JB@BlackSkyTech.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: TO_CHAR(timestamptz,datetimeformat) wrong after DST change
Date: Fri, 18 Mar 2011 12:46:53 -0400
Message-ID: <17126.1300466813@sss.pgh.pa.us> (raw)
In-Reply-To: <4D834322020000250003BABD@gw.wicourts.gov>
References: <004c01cbe57c$7d920ca0$78b625e0$@com>
	<15708.1300462903@sss.pgh.pa.us>
	<005601cbe585$bc7d4b10$3577e130$@com>
	<4D834322020000250003BABD@gw.wicourts.gov>

"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> "Jonathan Brinkman" <JB@BlackSkyTech.com> wrote:
>> I guess EST is not DST-friendly?
 
> EST stands for Eastern *Standard* Time, which is explicitly *not*
> under Daylight Saving Time.

Right.  SET TIMEZONE 'EST' gets you GMT-5 all year round.
For background see this bit in src/timezone/data/northamerica:

# From Arthur David Olson, 2005-12-19
# We generate the files specified below to guard against old files with
# obsolete information being left in the time zone binary directory.
# We limit the list to names that have appeared in previous versions of
# this time zone package.
# We do these as separate Zones rather than as Links to avoid problems if
# a particular place changes whether it observes DST.
# We put these specifications here in the northamerica file both to
# increase the chances that they'll actually get compiled and to
# avoid the need to duplicate the US rules in another file.

# Zone	NAME		GMTOFF	RULES	FORMAT	[UNTIL]
Zone	EST		 -5:00	-	EST
Zone	MST		 -7:00	-	MST
Zone	HST		-10:00	-	HST
Zone	EST5EDT		 -5:00	US	E%sT
Zone	CST6CDT		 -6:00	US	C%sT
Zone	MST7MDT		 -7:00	US	M%sT
Zone	PST8PDT		 -8:00	US	P%sT

(Note: the lack of a RULES entry means no DST rule.)

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <17126.1300466813@sss.pgh.pa.us>
Permalink:  ../17126.1300466813@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17126.1300466813@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov, JB@BlackSkyTech.com
  Subject: Re: TO_CHAR(timestamptz,datetimeformat) wrong after DST change
  In-Reply-To: <17126.1300466813@sss.pgh.pa.us>
  References: <004c01cbe57c$7d920ca0$78b625e0$@com> <15708.1300462903@sss.pgh.pa.us> <005601cbe585$bc7d4b10$3577e130$@com> <4D834322020000250003BABD@gw.wicourts.gov> <17126.1300466813@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