• MartianSands@sh.itjust.works
    link
    fedilink
    arrow-up
    31
    arrow-down
    6
    ·
    2 years ago

    That’s easy. The 2038 problem is fixed by using 64-bit processors running 64-bit applications. Just about everything built in the last 15 years has already got the fix

    Using that fix, the problem doesn’t come up again for about 300 billion years

    • cmnybo@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      33
      ·
      2 years ago

      You don’t need 64 bit programs or CPUs to fix the 2038 problem. You just need to use a 64 bit time_t. It will work fine on 32 bit CPUs or even 8 bit microcontrollers.

    • 0x0@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Just about everything built in the last 15 years has already got the fix

      You mean regular PCs? Sure…
      Less COTS stuff? Not necessarily.

    • lengau@midwest.social
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      There are plenty of smaller devices still running 32-bit ARM processors. Enough of them in fact that Ubuntu 24.04 got entirely recompiled to only use 64-bit timestamps even on 32-bit platforms since by the time it’s out of support 2038 will be less than 5 years away.