[Bug 1824688] Re: date+%-Y -d "- N years" errors when N > 111
C de-Avillez
hggdh2 at ubuntu.com
Tue Apr 16 19:45:26 UTC 2019
re-assigning bug to glibc
** Package changed: coreutils (Ubuntu) => glibc (Ubuntu)
** Description changed:
I have been using 'date +%-Y -d "- 2010 years" in a script for years but
today after using the script after upgrading to disco it has failed.
After some experimentation it succeeds with upto 111 years but fails
from 112 onwards.
Error given is:
'date: invalid date '- 112 years'.
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: coreutils 8.30-1ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-11.12-generic 5.0.6
Uname: Linux 5.0.0-11-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
Date: Sun Apr 14 10:59:36 2019
InstallationDate: Installed on 2017-10-08 (553 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
SourcePackage: coreutils
UpgradeStatus: Upgraded to disco on 2019-04-13 (1 days ago)
+
+ BYPASS (probable, not confirmed in all possible scenarios):
+
+ use TZ=UTC:
+
+ export TZ=UTC, or env TZ=UTC program
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1824688
Title:
date+%-Y -d "- N years" errors when N > 111
Status in glibc package in Ubuntu:
Confirmed
Bug description:
I have been using 'date +%-Y -d "- 2010 years" in a script for years
but today after using the script after upgrading to disco it has
failed.
After some experimentation it succeeds with upto 111 years but fails
from 112 onwards.
Error given is:
'date: invalid date '- 112 years'.
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: coreutils 8.30-1ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-11.12-generic 5.0.6
Uname: Linux 5.0.0-11-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
Date: Sun Apr 14 10:59:36 2019
InstallationDate: Installed on 2017-10-08 (553 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
SourcePackage: coreutils
UpgradeStatus: Upgraded to disco on 2019-04-13 (1 days ago)
BYPASS (probable, not confirmed in all possible scenarios):
use TZ=UTC:
export TZ=UTC, or env TZ=UTC program
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1824688/+subscriptions
More information about the foundations-bugs
mailing list