[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12318: gnu date has incorrect date when using date math during a lea
From: |
John Mizell |
Subject: |
bug#12318: gnu date has incorrect date when using date math during a leap year |
Date: |
Fri, 31 Aug 2012 08:39:12 -0600 |
gnu date has incorrect date when using date math during a leap year
Here are the steps to reproduce
address@hidden ~]$ date "+%m%Y" --date='1 month ago'
072012
address@hidden ~]$ date "+%m%Y" --date='5 month ago'
032012
address@hidden ~]$ date "+%m%Y" --date='6 month ago'
032012
address@hidden ~]$ date "+%m%Y" --date='7 month ago'
012012
address@hidden ~]$ date "+%m%d%Y" --date='7 month ago'
01312012
address@hidden ~]$ date "+%m%d%Y" --date='5 month ago'
03312012
address@hidden ~]$ date "+%m%d%Y" --date='6 month ago'
03022012
Version:
address@hidden ~]$ date --version
date (GNU coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
Distro:
CentOS release 6.3 (Final)
- bug#12318: gnu date has incorrect date when using date math during a leap year,
John Mizell <=