Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117490 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66042 invoked from network); 7 Apr 2022 08:03:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Apr 2022 08:03:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 16AE91804AB for ; Thu, 7 Apr 2022 02:34:12 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_20,SPF_HELO_PASS, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/20 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Thu, 7 Apr 2022 02:34:11 -0700 (PDT) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 9E1CF10C22E for ; Thu, 7 Apr 2022 10:34:10 +0100 (BST) Date: Thu, 7 Apr 2022 10:34:10 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: PHP Developers Mailing List Message-ID: User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Timezone Rules, which dataset to pick? From: derick@php.net (Derick Rethans) Hi! As you might be aware, I maintain the date time support in PHP. As part of that I regularly have to update the rules that timezones employ - changes in Daylight Saving Time rules, or other changes to rules due to political foibles. In the last few years, the maintainer of the Iana TZ Data project has diverged somewhat from the consensus of the community, and degraded some data by no longer having an entry for each country and merged timezones where data does not differ since 1970. (Removing transitions from these regions where data **does** differ before 1970, even if these were available). Java's date/time maintainer has created a fork based on the original Iana TZ data to put back some of the removed/deprecated data to better serve their users, and I would think that this is also best suited as a data set for PHP. If you want to read about the intricacies, see: https://github.com/JodaOrg/global-tz#rationale But this does mean a divergence from the "official" TZ data, although Joda's data is arguably better. My recommendation is that from the 2022b release we switch to Joda's version. (I will today merge in the 2022a data from the Iana source.) Comments? If you want to discuss this live, come find me in "Room 11": https://chat.stackoverflow.com/rooms/11/php cheers, Derick -- 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