The typical range of valid timestamps in PHP is from 20:45:54 on December 13, 1901 to GMT January 19, 2038 03:14:07. (This range conforms to the minimum and maximum values of 32-bit signed integers). However, prior to PHP 5.1 this range was limited to January 1, 1970 to January 19, 2038 on some systems (such as Windows).
64-bit systems will not be affected. If you are using a 32-bit system, you can use new DateTime to solve it
The code is as follows:
Normal time: ', $datetime->format('Y-m-d H:i'), '
';Time overflow: ', date('Y-m-d H:i', strtotime($date)), '
';
Since there are still many servers using win2003, this solution has wide applicability. I hope everyone will like it.