BUG #16027: Invalid output of to_timestamp

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: jeff(dot)sturm(at)helloworld(dot)com
Subject: BUG #16027: Invalid output of to_timestamp
Date: 2019-09-26 15:20:56
Message-ID: 16027-8b799f2d11947553@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16027
Logged by: Jeff Sturm
Email address: jeff(dot)sturm(at)helloworld(dot)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"

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2019-09-26 15:39:17 Re: BUG #16027: Invalid output of to_timestamp
Previous Message Marina Garrido Sanchez 2019-09-26 15:14:31 Re: BUG #16020: ICU Collations querys