-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Probably a very minor request, but can PECL's timezoneDB be made into a layer? #534
Comments
Yeah, I agree, it is mind boggling how this is not a default extension in Docker official images as well because it leads to stupid bugs with timezone. |
Hey! I wonder if this is (or could be) available through a Composer package? Distribution and installation would be much simpler. |
I wondered the very same thing this morning 😅 but I doubt. When I think about the It seems there is nothing of interest - https://packagist.org/?query=timezone To be fair, the extension documentation stipulates this,
The more I think about this the more I think this is related to the active support state of the PHP version in use. For example, PHP 7.4, which is not supported anymore, has a database version In the mean time, PHP 8.2/3 are using the very latest version. PHP 8.1 is not, since its "active support" ended in Nov 2023. echo timezone_version_get(); I guess, what I'm trying to say is that, I think that as long as people are using an up to date / supported version of PHP, then the timezone database seems fairly up to date already - https://www.php.net/supported-versions.php
Yes, I installed the extension in the official docker image for PHP 7.4 and it worked flawlessly. |
oh good to know! |
You can't always update to the latest release as there may be dependencies that are not compatible. As this specific extension is pretty much universal, being able to update it would be a "good thing". As PHP is NOT responsible for countries around the world changing, adding historic, or correcting their timezone information, and those changes NOT coinciding with an official PHP release for this 1 extension, the extension is very "different" in this regard. It is pretty much just data. Being able to add it in an easy manner (ideally on change from PECL), or, at least, a well documented process that doesn't get in the way of BrefPHP doing its thing, would be ideal. |
The TimeZoneDB extension is pretty important when working with datetime on a global basis. The extension itself is VERY VERY minimal from a "code" perspective. It is more about "data" that is maintained externally and pulled into the extension when the things change.
It is a drop-in replacement to the version that is statically compiled into the PHP binary (assuming standard building) and is how all
date
functions, class, methods, etc. work. Add the drop-in, nothing except data changes and is only updated to be more accurate.The updates to Olson and then the PECL TimeZoneDB are not related to deployments of PHP. From memory, the extension is compatible with ALL versions of PHP (it really is JUST some data ... a LOT of data though!).
The text was updated successfully, but these errors were encountered: