Skip to content

Commit

Permalink
change POSIXct to POXIXlt in slices_restore for POSIX classes /timest…
Browse files Browse the repository at this point in the history
…amps
  • Loading branch information
m7pr committed Oct 17, 2023
1 parent 2d246e0 commit cd218bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/teal_slice-store.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ slices_restore <- function(file) {
if (all(grepl(paste0(date_partial_regex, "$"), slice[[field]]))) {
as.Date(slice[[field]])
} else if (all(grepl(time_stamp_regex, slice[[field]]))) {
as.POSIXct(substr(slice[[field]], 1, 19), tz = substr(slice[[field]], 21, nchar(slice[[field]]))[1])
as.POSIXlt(slice[[field]])
# as.POSIXct(substr(slice[[field]], 1, 19), tz = substr(slice[[field]], 21, nchar(slice[[field]]))[1])
} else {
slice[[field]]
}
Expand Down

0 comments on commit cd218bf

Please sign in to comment.