From 87552c2327c01d30ad4c3126b6ae6d1339e60664 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Mon, 24 Dec 2018 14:08:18 +0000 Subject: [PATCH] Fixed off-by-one error in calculating eolMonth. --- scripts/jenkins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/jenkins.py b/scripts/jenkins.py index 849f38a39..bd2b4adea 100644 --- a/scripts/jenkins.py +++ b/scripts/jenkins.py @@ -61,9 +61,9 @@ class Builder: if eolInMonth > 0: eolYear = date.today().year - eolMonth = date.today().month + eolInMonth + eolMonth = date.today().month + eolInMonth - 1 eolYear = eolYear + ( eolMonth / 12 ) - eolMonth = eolMonth % 12 + eolMonth = eolMonth % 12 + 1 eolDate = date(int(eolYear), int(eolMonth), 1) print('Setting EOL date to ' + eolDate.strftime('%Y%m%d')) qmake_call += ['BLACK_EOL=' + eolDate.strftime('%Y%m%d')]