Skip to content

Commit

Permalink
fixed issue #208
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Hayden committed Jan 23, 2024
1 parent a1ef84e commit 7543676
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions R/load-read_glatos_workbook.r
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@
#' wb <- read_glatos_workbook(wb_file)
#'
#' @export

wb_file <- system.file("extdata",
"walleye_workbook.xlsm",
package = "glatos")

read_all = FALSE
wb_version = NULL

read_glatos_workbook <- function(
wb_file, read_all = FALSE,
wb_version = NULL) {
Expand Down Expand Up @@ -325,9 +333,9 @@ read_glatos_workbook <- function(
rows_k <- tzone_j %in% tz_cmd[k] # get rows with kth tz
# round to nearest minute and force to correct timezone
posix_as_num[rows_k] <- as.POSIXct(
round(
format(
posix_as_num[rows_k],
"mins"
"%Y-%m-%d %H:%M",
),
tz = tz_cmd[k]
)
Expand Down

0 comments on commit 7543676

Please sign in to comment.