pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: jeff.sturm@helloworld.com
Subject: BUG #16027: Invalid output of to_timestamp
Date: Thu, 26 Sep 2019 15:20:56 +0000
Message-ID: <16027-8b799f2d11947553@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16027
Logged by:          Jeff Sturm
Email address:      jeff.sturm@helloworld.com
PostgreSQL version: Unsupported/Unknown
Operating system:   CentOS 6.10
Description:        

Actual version is 8.4.20.

With a date in year 1904 or earlier, the to_timestamp function outputs
unexpected characters:

template1=# select to_timestamp('19041231','YYYYMMDD');
         to_timestamp
------------------------------
 1904-12-31 00:00:00-05:32:11

Expected is "1904-12-31 00:00:00-06"



view thread (4+ messages)  latest in thread

Message-ID: <16027-8b799f2d11947553@postgresql.org>
Permalink:  ../16027-8b799f2d11947553@postgresql.org/
Also on:    postgresql.org/message-id/16027-8b799f2d11947553@postgresql.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: noreply@postgresql.org, jeff.sturm@helloworld.com
  Subject: Re: BUG #16027: Invalid output of to_timestamp
  In-Reply-To: <16027-8b799f2d11947553@postgresql.org>
  References: <16027-8b799f2d11947553@postgresql.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