date command produces "invalid date" on day of DST change when calculating a time between 02:00 and 02:59
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.