Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 183937 - date -d "month year" produces a strange result
date -d "month year" produces a strange result
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2006-03-03 16:57 EST by Michael Young
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-03-08 04:32:48 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michael Young 2006-03-03 16:57:03 EST
Description of problem:
I would expect date -d "July 2005" to return something like "Fri Jul  1 00:00:00
BST 2005" or complain that format is invalid. However for some unknown reason 
it actually returns "Mon Dec 26 00:00:00 GMT 2011". The error seems to be
constant number of days out.

Version-Release number of selected component (if applicable):
However, it seems to have been broken for a long time - sh-utils-2.0.11-5.2 on
RHEL 2.1 has the same behaviour.
Comment 1 Michael Young 2006-03-08 04:32:48 EST
It seems "July 2005" is actually giving the 2005th day of July this (32nd
July=1st August etc.). I have now checked this on the Fedora Core 5 beta, and
that reports an error with such date formats.

Note You need to log in before you can comment on or make changes to this bug.