From 190e4a1a1d44d2a583571fc779507afece350274 Mon Sep 17 00:00:00 2001 From: Jon Bryant Date: Wed, 14 Jan 2026 14:15:09 -0500 Subject: [PATCH] Updated to read TZ as EST then change New_York Time zone is now being read in as EST, which matches the csv file, then is converted to America/New_York Closes #30 --- 02_connectscripts/01_update_baro_tables.rmd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/02_connectscripts/01_update_baro_tables.rmd b/02_connectscripts/01_update_baro_tables.rmd index 3be7ccb..3681a94 100644 --- a/02_connectscripts/01_update_baro_tables.rmd +++ b/02_connectscripts/01_update_baro_tables.rmd @@ -316,7 +316,10 @@ for(i in 1:nrow(newfiles)){ if(nrow(tempdata) == 0) {next} #if the file is empty, skip it tempdata <- tempdata[, 2:4] colnames(tempdata) <- c("dtime", "baro_psi", "temp_f") - tempdata$dtime <- mdy_hms(tempdata$dtime, tz = "America/New_York") + # Read dtime with EST time zone and change to America/New_York + tempdata <- temp_data |> + mutate(dtime = mdy_hms(dtime, tz = "EST"), + dtime = with_tz(dtime, tz = "America/New_York")) tempdata$baro_rawfile_uid <- newfiles$baro_rawfile_uid[i] tempdata <- tempdata[complete.cases(tempdata[, 1:3]),] #Purge NA rows from the final data set