From 8d0f458bce87a3fafa59578ba3201682f9a7b495 Mon Sep 17 00:00:00 2001 From: huikyole Date: Fri, 19 May 2017 08:36:05 -0700 Subject: [PATCH] CLIMATE-915 - Checking netcdf files' file format - ocw.utils.decode_time_value has been fixed --- ocw/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocw/utils.py b/ocw/utils.py index e9d8d751..db4b9268 100755 --- a/ocw/utils.py +++ b/ocw/utils.py @@ -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: