[tz] Merged 1970+ time zones should always return -1 pre-1970

Derick Rethans derick at derickrethans.nl
Tue Sep 28 15:40:57 UTC 2021

On Tue, 28 Sep 2021, Brian Inglis via tz wrote:

> I think for all zones with data merged prior to 1970, the data and API should
> always return *-1* for all times prior to 1970-01-01 00:00:00Z, as anything
> else is inaccurate or a kludge.

That is only an option if you use the code bundled with the data. I 
can't simply change PHP to throw a "can't have this Date" exception for 
pre-1970 timestamps. And removing/changing the already existing timezone 
information to either that of a different country or UTC, is also not 
practical. It is a backwards compatibiliy break that I *will* get emails 


PHP 7.4 Release Manager
Host of PHP Internals News: https://phpinternals.news
Like Xdebug? Consider supporting me: https://xdebug.org/support
https://derickrethans.nl | https://xdebug.org | https://dram.io
twitter: @derickr and @xdebug

More information about the tz mailing list