• Ask a question
  • Neurogram
NeuroAgent

Java 1927 Shanghai Timezone Bug Explained

Discover why Java's SimpleDateFormat gives 353 instead of 1 when subtracting epoch-millisecond timestamps from 1927 in Asia/Shanghai timezone. Learn about historical timezone discontinuities and how to fix this issue.

  • #1927-time-discontinuity
  • #asia-shanghai
  • #epoch-milliseconds
  • #historical-timezone
  • #java-date-calculation
  • #java-timezone-bug
  • #simpledateformat
10/19/2025, 01:57 PM