date command produces "invalid date" on day of DST change when calculating a time between 02:00 and 02:59

Bug #1964741 reported by Tom May
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

When calculating a timestamp for a time between 02:00 and 02:59 in some locales, date will report "invalid date".

This only occurs if the system time is currently during the day that standard time transitions to daylight time.

Example:

OS Version information:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

System Locale is: America/Chicago
System time the command was issued: Sun 13 Mar 2022 10:15:18 PM CDT
Command issued: date +%s -d 'tomorrow 02:50'

System Response: date: invalid date 'tomorrow 02:50'

If the command issued is changed such that the calculated time is anything other than a time between 02:00 and 02:59 the output is normal.

Tags: focal
Chris Guiver (guiverc)
tags: added: focal
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.