Skip to content

Commit

Permalink
remove inaccurate comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosmg committed Jan 26, 2022
1 parent 2f30447 commit da5f7f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions r/R/array.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,8 @@ Array$create <- function(x, type = NULL) {
return(out)
}

if (inherits(x, "POSIXct") && any(attr(x, "tzone") == "",
# the POSIXct vector may not have the "tzone" attribute (e.g. it was
# created with `strptime()`)
is.null(attr(x, "tzone")))) {
if (inherits(x, "POSIXct") &&
any(attr(x, "tzone") == "", is.null(attr(x, "tzone")))) {
attr(x, "tzone") <- Sys.timezone()
}

Expand Down

0 comments on commit da5f7f6

Please sign in to comment.