gnu date has incorrect date when using date math during a leap year Here are the steps to reproduce
[jmizell@backdoor ~]$ date "+%m%Y" --date='1 month ago' 072012 [jmizell@backdoor ~]$ date "+%m%Y" --date='5 month ago' 032012 [jmizell@backdoor ~]$ date "+%m%Y" --date='6 month ago' 032012 [jmizell@backdoor ~]$ date "+%m%Y" --date='7 month ago' 012012 [jmizell@backdoor ~]$ date "+%m%d%Y" --date='7 month ago' 01312012 [jmizell@backdoor ~]$ date "+%m%d%Y" --date='5 month ago' 03312012 [jmizell@backdoor ~]$ date "+%m%d%Y" --date='6 month ago' 03022012 Version: [jmizell@backdoor ~]$ 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)
