Contributing Advent 21: Timezone database
Timezones have always been a pain, and Daylight Saving(s) time does not make it a lot easier. Then of course you have governments that decide to change the rules. Often that is done nicely in advance, but once in a while the rule changes are announced at the absolutely last moment, or, sometimes even after the new rules have come into effect. To track the craziness, have a look at Time Zone News, and this image to see how many different rules there are!
The changes to rules, and the changes to them are tracked by a group of volunteers that maintain the Olson TZ Database, named after the now retired David Arthur Olson. Every so often a new release is made through IANA's website. The last change happened last Tuesday, and hopefully this is the last release of this year.
The Olson TZ Database is used by a whole lot of software stacks, for example by almost every Unix system, but there are also implementations for languages. There is Yoda time for Java, and PHP's DateTime support also uses the Olson database to be able to calculate the correct local time.
Because the PHP release cycle can not keep up with the releases of the Olson database, you can update the rule set in PHP by installing newer versions of the timezonedb PECL extension, which closely follows releases of the Olson database.
As I am the maintainer of PHP's DateTime support, I am also responsible for keeping the database, and it's accompanying PECL extension up-to-date. With the latest release available through the PECL extension, websites such as http://time.is can then show you the latest, and correct, local time.
Comments
You linked "Yoda time"[sic!] to PHP's datetime URL. Did you mean http://www.joda.org/joda-time/ ...?
Indeed, I've fixed it!
Life Line
What new fresh hell is this?
"Please click here and tick the box if you DO NOT want to be opted in."
And when you click on the non-visible link:
"[ ] I DO NOT want to be opted in."
@jamesholden Have you ever seen the Expanse? One of the main characters shares your name!
I walked 4.4km in 51m58s
I walked 8.2km in 1h40m07s
I walked 2.4km in 38m25s
@Edent With your ActivityPub implementation, have you figured out how to allow quote posts for your bot posts yet?
📷 Brown Cap in the Grass
🚩 Herikhuizerweg, Rheden, Nederland
I walked 0.9km in 11m17s
I walked 2.8km in 25m32s
I walked 4.6km in 1h8m02s
📷 Stalkers Lane
🚩 Graywood Lane, Wealden, United Kingdom
I hiked 23.0km in 4h10m15s
I walked 3.9km in 39m07s
After my PHP 8.5 in Leeds last night, it's now time to head to Rotterdam to give the same talk there tonight!
It's cold out here, but atleast the snow is now gone.
I walked 1.7km in 13m18s
📷 Avenue Gardens
🚩 Princess Road, London Borough of Brent, United Kingdom
📷 Leafy Entrance
🚩 East Heath Road, London Borough of Camden, United Kingdom
📷 From Green to Yellow.
🚩 St John's Wood Road, City of Westminster, United Kingdom
I walked 9.1km in 1h56m24s







Shortlink
This article has a short URL available: https://drck.me/adv1321-afg