Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EFUNs [AIX,NT]: Improved support for time beyond 2038-01-19 in mktime().
Fixes calculation for dates past 2038-01-19T03:14:07 UTC. The issue was caused by the C division operator rounding negative values toward zero rather than toward negative infinity. Now the dividend should stay positive to avoid surprises. Note that mktime() is best-effort for timezone offsets other than 0.
- Loading branch information