diff --git a/R/ReadNetCDF.R b/R/ReadNetCDF.R index e958d11c..352a2082 100644 --- a/R/ReadNetCDF.R +++ b/R/ReadNetCDF.R @@ -358,6 +358,7 @@ time_units_factor <- c("days" = 24*3600, .parse_time <- function(time, units, calendar = NULL) { + calendar <- tolower(calendar) has_since <- grepl("since", units) if (!has_since) { return(time)