Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agC2V-0003BT-Jf for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Mar 2016 14:03:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1agC2V-0001rc-1b for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Mar 2016 14:03:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1agC2U-0001qg-F2 for pgsql-bugs@postgresql.org; Wed, 16 Mar 2016 14:03:06 +0000 Received: from 173-164-140-181-sfba.hfc.comcastbusiness.net ([173.164.140.181] helo=fetter.org) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agC2Q-00046W-VC for pgsql-bugs@postgresql.org; Wed, 16 Mar 2016 14:03:06 +0000 Received: by fetter.org (Postfix, from userid 500) id CA76163343; Wed, 16 Mar 2016 07:02:38 -0700 (PDT) Date: Wed, 16 Mar 2016 07:02:38 -0700 From: David Fetter To: PostgreSQL Bugs Subject: to_char(OF) is broken Message-ID: <20160316140238.GA9113@fetter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Folks, In to_char(), the new-in-9.4 'OF' feature is straight-up broken, to wit: set timezone to 'America/Caracas'; select to_char(now(), 'OF'); SET to_char ───────── -04:-30 ^OK ^NOT OK Interestingly, in git master as of yesterday, it's broken in an entirely different way: set timezone to 'America/Caracas'; select to_char(now(), 'OF'); SET to_char ───────── -004:30 ^ What's this extra zero doing here? (1 row) Fractional offset time zones should probably be in our regression test suite for this feature. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fetter@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs