Public bug reported:

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.

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to