Skip to content

Commit

Permalink
fixed an issue with dates that was causing many dates to be moved for…
Browse files Browse the repository at this point in the history
…ward a day
  • Loading branch information
KevinSee committed Feb 23, 2024
1 parent 8fe59b0 commit b200548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/queryMRRDataFile.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ queryMRRDataFile = function(file_nm = NULL,

# fix any date fields
if(sum(str_detect(names(tag_data), "date")) > 0) {
tag_data <- tag_data |>
tag_data <-
tag_data |>
dplyr::mutate(
dplyr::across(
dplyr::contains("date"),
lubridate::ymd_hms))
~ lubridate::ymd_hms(stringr::str_sub(., 1, 19))))
}
} else {

Expand Down

0 comments on commit b200548

Please sign in to comment.