diff options
| author | Kiwinote <kiwinote@gmail.com> | 2010-06-28 09:54:06 +0100 |
|---|---|---|
| committer | Kiwinote <kiwinote@gmail.com> | 2010-06-28 09:54:06 +0100 |
| commit | dc53e59cb9718fd5751066539fed46d7cdf01268 (patch) | |
| tree | 5fc2698d0ed429e54eaa9cf737d8aa44c0159560 | |
| parent | 70da3b041dcb31e783c381d002fdee8bba9ec292 (diff) | |
| download | python-apt-dc53e59cb9718fd5751066539fed46d7cdf01268.tar.gz | |
December is month 12, not month 0
| -rw-r--r-- | apt/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt/utils.py b/apt/utils.py index 80ba6d65..f4d34261 100644 --- a/apt/utils.py +++ b/apt/utils.py @@ -33,6 +33,8 @@ def get_maintenance_end_date(release_date, m_months): support_end_year = (release_date.year + years + (release_date.month + months)/12) support_end_month = (release_date.month + months) % 12 + if support_end_month == 0: + support_end_month = 12 return (support_end_year, support_end_month) |
