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"