Programmer DD
Dec 30, 2021 · Backend Development
Why Does Java Print 1900‑01‑01 08:05:43? Uncovering Hidden Timezone Bugs
A Java program that formats "1900-01-01 08:00:00" unexpectedly prints "1900-01-01 08:05:43" due to historic Shanghai timezone offsets, and the article walks through the bug, related OpenJDK issues, Stack Overflow cases, and how different TZDB releases affect the result.
JDK bugJavaTZDB
0 likes · 9 min read
