Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E83D61337BE7 for ; Fri, 18 Mar 2011 13:47:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 63115-10 for ; Fri, 18 Mar 2011 16:47:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 892961337C00 for ; Fri, 18 Mar 2011 13:47:00 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p2IGkrJB017127; Fri, 18 Mar 2011 12:46:53 -0400 (EDT) To: "Kevin Grittner" cc: JB@BlackSkyTech.com, pgsql-bugs@postgresql.org Subject: Re: TO_CHAR(timestamptz,datetimeformat) wrong after DST change 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> Comments: In-reply-to "Kevin Grittner" message dated "Fri, 18 Mar 2011 11:33:54 -0500" Date: Fri, 18 Mar 2011 12:46:53 -0400 Message-ID: <17126.1300466813@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/250 X-Sequence-Number: 29760 "Kevin Grittner" writes: > "Jonathan Brinkman" 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