Use _TIME_BITS=64 to solve the y2038 problem

66 views Asked by At

I added the macro of _TIME_BITS=64 to Buildroot, and the system can set the time after 2038 after compilation, but if it exceeds 2038, my timestamp is -1, how to solve it

date -s "2038-11-23 00:00:00"

Tue Nov 23 00:00:00 UTC 2038

date +%s

-1

0

There are 0 answers