Skip to content

Commit 218a6c8

Browse files
authored
Merge pull request #2032 from UV-CDAT/issue_2031_seasons_broke
needed to duplicate yr fully in case the year starts in October for e…
2 parents b6308cc + db293fa commit 218a6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/cdutil/Lib/times.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def getMonthIndex(my_str):
118118
# end of for mon in mon_list:
119119

120120
yr = 'JFMAMJJASOND'
121-
yrs = yr+yr[:6]
121+
yrs = yr+yr
122122
#
123123
result = string.find(yrs, my_str)
124124
if result == -1: return []

0 commit comments

Comments
 (0)