pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Fetter <david@fetter.org>
To: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: to_char(OF) is broken
Date: Wed, 16 Mar 2016 07:02:38 -0700
Message-ID: <20160316140238.GA9113@fetter.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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 <david@fetter.org> 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



view thread (4+ messages)  latest in thread

Message-ID: <20160316140238.GA9113@fetter.org>
Permalink:  ../20160316140238.GA9113@fetter.org/
Also on:    postgresql.org/message-id/20160316140238.GA9113@fetter.org

 · 

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: david@fetter.org
  Subject: Re: to_char(OF) is broken
  In-Reply-To: <20160316140238.GA9113@fetter.org>
  References: <20160316140238.GA9113@fetter.org>

* 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