Bug 183937

Summary: date -d "month year" produces a strange result
Product: [Fedora] Fedora Reporter: Michael Young <m.a.young>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-08 04:32:48 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.