How we almost missed a plane in Kazakhstan, but OpenJDK could have saved us...

In August, our family vacation brought us to Kazakhstan. An important trip, as it is the birth country of our (now) 14y son. It was over 13 years that we had been there and we planned to go back earlier, but some stupid virus messed up everyones life a few years ago… So finally, early this year, we decided to start organizing our trip. Or to be fully honest, we asked Ardjan of “Kazachstan Reizen” to do that for you. And we had an amazing trip, visited different cities and national parks, and had a fantastic time.

Visiting the baby house where our son stayed the first months of his life, was another amazing moment. Many of the caretakers were very happy to see him back and see with their own eyes that the little baby has transformed in a strong, healthy teenager.

(yes, I may have walked around in a Foojay T-shirt and JVM cap)

Flight Time Change

But why am I telling this story here on a technical, Java blog? Because we almost missed our flight home, and that wouldn’t have happened if I had paid more attention to a specific change in one of the latest Java release notes…!

In 2023, I wrote the blog post “Time Zone and Currency Database in JDK” for the Azul website. In that post, I explained how the OpenJDK sources contain a full database with information and the full history of timezones, daylight savings, and currencies. I even gave the example of the change in January 2023 with the currency of Croatia changing from the Kuna to the Euro.

Apparently, something similar happened when IANA database 2024a got integrated into OpenJDK with JDK-8325150: “(tz) Update Timezone Data to 2024a”. That ticket contains several changes, including: “Kazakhstan unifies on UTC+5 beginning 2024-03-01.” Indeed, Kazakhstan changed their timezone on March 1st of this year! You can find the changed data here, modified by commit 917838e.

Because we wanted to be sure of a good price for our plane tickets, we bought them well in advance, in January. For our flight back, we had a departure time of 05:20. But because of the time zone change, that flight actually departed at 04:20, an hour earlier. Because of delays, we didn’t notice that change in the arriving flight…

Luckily we checked the departure time the day before as we had to leave the hotel in the middle of the night. According to our trip organizer we were not the first ones who got confused about changed flight times in Kazakhstan this year.

Conclusion

Is Kazakhstan worth a visit? Definitely! Take your time and travel around as it’s a very big country with a lot of beautiful spots.

And, before you leave for your next trip, double-check the tickets and the OpenJDK code to validate the times ;-)