diff --git a/advisors/version_recommend.py b/advisors/version_recommend.py index 47468630018c7a2cc0ad37e3a0f25e782d04c73d..a6797c7f3021a64614f5ade8875da04368cfd9b9 100755 --- a/advisors/version_recommend.py +++ b/advisors/version_recommend.py @@ -941,7 +941,7 @@ class VersionTypeXYymmZ(VersionType): return False year = str(digital_list[1][:2]) month = str(digital_list[1][-2:]) - if year > datetime.datetime.now().year[-2:]: # 年份不能大于当前年份,不用考虑20000 年前的情况 + if year > str(datetime.datetime.now().year)[-2:]: # 年份不能大于当前年份,不用考虑2000 年前的情况 return False if month > '12' or month == '0': return False