date command no longer handles daylight saving time (summer time) after January 2038

Bug #1773023 reported by L. David Baron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

This worked in Ubuntu 17.04 (I *think* -- definitely did work in earlier Ubuntu releases but I'm not 100% sure 17.04 was the last working release) but is broken in Ubuntu 17.10 and in 18.04.

The date command no longer handles summer time (Daylight Saving Time) for dates after January 2038 (i.e., when seconds since the epoch overflows a signed 32-bit time_t).

Steps to reproduce:
 in bash, run the command:
      TZ=America/Los_Angeles date --date=@2196000000

Expected results:
  Wed Aug 3 09:00:00 PDT 2039

Actual results:
  Wed Aug 3 08:00:00 PST 2039

System information:

$ lsb_release -rd
Description: Ubuntu 18.04 LTS
Release: 18.04
$ dpkg -l coreutils | grep "^ii"
ii coreutils 8.28-1ubuntu1 amd64 GNU core utilities
$ dpkg -l tzdata | grep "^ii"
ii tzdata 2018d-1 all time zone and daylight-saving time data
$ uname -sm
Linux x86_64

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.