arduino-libraries / NTPClient

Connect to a NTP server
542 stars 372 forks source link

64-bit time_t and year 2038 #151

Open chudsaviet opened 3 years ago

chudsaviet commented 3 years ago

unsigned long time will overflow in 2038. Actually, in libc Arduino is using time_t type is and alias to unsigned long long, which is a 64-bit value. It would be great to make the library more future-proof.

bsvdoom commented 2 years ago

Is this a duplicate of #149?