Unix time bug (Year 2038)

Topics about the system utilities that are not related to Hard-disk and storage
y2k38
Posts: 1
Joined: 01 May 2015, 14:37

Unix time bug (Year 2038)

Postby y2k38 » 01 May 2015, 15:02

Apparently System Rescue CD (systemrescuecd-x86-4.4.0.iso) cannot deal with dates later than 2038-01-20, a problem described in Wikipedia as the Unix Year 2038 problem. The following command, for example, throws up an error:

Code: Select all

% date -s "2038-01-19 3:14:08
date: invalid date '2038-01-19 3:14:08'

The following command is still valid:

Code: Select all

% date -s "2038-01-19 3:14:07
Tue Jan 19 03:14:07 UTC 2038

However, a subsequent invocation of the date command shows that the system date has rolled back to the year 1901! This problem doesn't show up in my default Debian GNU/Linux x86-64 installation or in Microsoft Windows when run from a KVM session with a fake date advanced to the year 2040.

Return to “System software”

Who is online

Users browsing this forum: No registered users and 1 guest