diff --git a/R/epi_df.R b/R/epi_df.R index 78d6e999..11c31863 100644 --- a/R/epi_df.R +++ b/R/epi_df.R @@ -148,10 +148,10 @@ new_epi_df <- function(x = tibble::tibble(), geo_type, time_type, as_of, as_of <- max(x$issue) } else if ("version" %in% names(x)) { as_of <- max(x$version) - } # If we got here then we failed - else { + } else { + # If we got here then we failed; use the current datetime as_of <- Sys.time() - } # Use the current day-time + } } # Define metadata fields