2 ms·
What's wrong with dates before the epoch? Subtraction of rolled over unsigned ints works.
by lupire 4y ago
What's wrong with dates before the epoch?
Subtraction of rolled over unsigned ints works.
- lucb1e 4y agoSo long as you know it was before 1970, and after 1970-(2038-1970)=1902, you can recover the original date, yes.
- coderintherye 4y agoI'm kind of both horrified and impressed that this very solution is likely in place in some codebases.
- onion2k 4y agoThe fix itself doesn't need to be complicated for it to be hard to actually implement. A lot of apps that are affected probably haven't been deployed in years. Some won't have any source code available. Others won't have any docs, or tests, or even developers who know the right language. Fixing simple issues in old apps is hard.