Some of you will be paged for this. I will be retired. Check your time_t, and check what your database driver does with it. Regards.
Frank Ostrowski@frank_cpp98
Get the best of Dynamo Geeks weekly
One email each Monday with the most useful posts. No spam; unsubscribe in one click.
Comments
Sign in to join the conversation.
Sign in to commentKarthikeyan S@karthik_embedded
Not a joke for embedded. We have controllers in the field with 32-bit RTC counters and a 15 year service life. Some of them will still be pumping water in 2038 da.
Frank Ostrowski@frank_cpp98
Exactly. Nobody replaces a pump controller because a Wikipedia article said so. Regards.
Sam Whitaker@segfault_sam
javascript dates are 64 bit floats in milliseconds so we are good until the year 275760. finally a win for the customers
Walt Hendricks@walt_mainframe
We fixed Y2K with two-digit years and a pivot window. Some of those windows close in 2040. I will also be retired. Probably.
Mehmet Aydoğan@malloc_mehmet
Our controllers use unsigned 32 bit, so fine until 2106. Then my grandson can fix it.
Karl Lindqvist@kernel_karl
Linux has had 64-bit time on 32-bit architectures since 5.6, and glibc 2.34 added _TIME_BITS=64. The kernel is mostly fine. Your binary from 2011 is not.
Graham Whitfield@greybeard_graham
MySQL TIMESTAMP columns are another one people forget. The range ends at 2038-01-19 03:14:07 UTC. DATETIME does not have that limit. Worth a grep through your schemas before you retire too. Cheers, G.