Year 2038
What this is
A signed 32-bit second counter maxes at 2^31−1 = 2147483647, which is 2038-01-19T03:14:07Z. The next second wraps to December 1901 on those systems. Use 64-bit time_t. JavaScript Date is milliseconds in IEEE 754, so it can represent 2038 — your database column might not.
21474836472038-01-19T03:14:07.000Z
Zones: UTC · New York · Los Angeles · Chicago · London · Paris · Berlin · India (Kolkata) · Tokyo · Singapore · Dubai · Sydney
FAQ
- Does JavaScript hit Y2038?
- Date uses 64-bit floats of milliseconds. The practical limit is ±100 million days, not 2038. MySQL TIMESTAMP (legacy) and old PHP 32-bit builds still bite.