Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge branch 'CLIMATE-916'
Browse files Browse the repository at this point in the history
  • Loading branch information
huikyole committed May 19, 2017
2 parents 55e51c8 + 8d0f458 commit cb93fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocw/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ def decode_time_values(dataset, time_var_name):
time_format = time_format[:-3]

time_units = parse_time_units(time_format)
time_base = parse_time_base(time_format)

times = []
if time_units == 'months':
# datetime.timedelta doesn't support a 'months' option. To remedy
# this, a month == 30 days for our purposes.
time_base = parse_time_base(time_format)
for time_val in time_data:
times.append(time_base + relativedelta(months=int(time_val)))
else:
Expand Down

0 comments on commit cb93fce

Please sign in to comment.