From 3d58f3fc1c88ff16e99961a7e307026d8bebf3ec Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Thu, 16 Nov 2023 11:00:14 -0800 Subject: [PATCH] Update R/epi_df.R Co-authored-by: brookslogan --- R/epi_df.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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