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



##########
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 a bit tricky since a `"tzone"` attribute is not a must for all 
POSIXct objects. For example, if the object is created with `strptime()` it 
will not have a `"tzone"` attribute. 




-- 
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