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

Chris Guiver 1964741 at bugs.launchpad.net
Mon Mar 14 05:53:54 UTC 2022


** Tags added: focal

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1964741

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

Status in coreutils package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1964741/+subscriptions




More information about the foundations-bugs mailing list