Bug 220935

Summary: Date calculation error for date command
Product: Red Hat Enterprise Linux 4 Reporter: kennychw <chia_hanwee>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3CC: chia_hanwee, meyering
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-29 13:03:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description kennychw 2006-12-29 01:31:54 UTC
Description of problem:
When I run the following date command on 29 December 2006 to obtain the month 
number for 10 month ago, the command return march instead of February

Version-Release number of selected component (if applicable):
coreutils-5.2.1-31.2

How reproducible:
$ date
Fri Dec 29 09:15:42 SGT 2006
$ date -d '10 months ago' +%m
03

Steps to Reproduce:
1.
2.
3.
  
Actual results:
03

Expected results:
02

Additional info:

Comment 1 Tim Waugh 2006-12-29 13:03:54 UTC

*** This bug has been marked as a duplicate of 220934 ***