dragosmg commented on a change in pull request #12240:
URL: https://github.com/apache/arrow/pull/12240#discussion_r792811650



##########
File path: r/R/array.R
##########
@@ -188,6 +188,11 @@ Array$create <- function(x, type = NULL) {
     return(out)
   }
 
+  if (inherits(x, "POSIXct") && attr(x, "tzone") == "") {
+    attr(x, "tzone") <- Sys.timezone()

Review comment:
       This is the reason for the second half of the `any()` statement (which I 
realised does not appear above):
   ```r
    if (inherits(x, "POSIXct") && any(attr(x, "tzone") == "", is.null(attr(x, 
"tzone"))))
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to