Bug 220935 - Date calculation error for date command
Summary: Date calculation error for date command
Keywords:
Status: CLOSED DUPLICATE of bug 220934
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: coreutils
Version: 4.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-29 01:31 UTC by kennychw
Modified: 2007-11-17 01:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-29 13:03:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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