nigeon / CryptoZombies

Loom Network tutorial code in Truffle (https://cryptozombies.io)
30 stars 25 forks source link

year 2038 overflow problem #4

Open elio-bteich opened 2 years ago

elio-bteich commented 2 years ago

You've said that we will have a problem with the overflow in 2038 since everyone is declaring timestamps as 32 bytes integers but if we calculate 2^32 -1 = 4,294,967,295 which is the max integer represented on 32 bytes, this number represents in Unix Timestamp Feb 07 2106 and not year 2038, so the overflow will happen on February 2106.