Skip to content

Commit f5d714f

Browse files
committed
few minor updates
1 parent c7d7bad commit f5d714f

File tree

3 files changed

+768
-483
lines changed

3 files changed

+768
-483
lines changed

R/internal_tests.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
}
9292
end_date <- opendapMetadata_internal$end_date[which(opendapMetadata_internal$collection == collection)]
9393
if(end_date != "ongoing"){
94-
if (length(time_range) == 2 && time_range[2] > as.Date(end_date)) {
94+
if (length(time_range) == 2 && (time_range[2] > as.Date(end_date) | time_range[2] > Sys.Date())) {
9595
stop("Time end in time_range argument is out of the temporal extent of the collection. Please modify time end.\n")
9696
}
9797
}

0 commit comments

Comments
 (0)