dragosmg commented on code in PR #12738:
URL: https://github.com/apache/arrow/pull/12738#discussion_r849282435
##########
r/R/dplyr-funcs-datetime.R:
##########
@@ -263,11 +263,11 @@ register_bindings_duration <- function() {
# cast to timestamp if time1 and time2 are not dates or timestamp
expressions
# (the subtraction of which would output a `duration`)
if (!call_binding("is.instant", time1)) {
- time1 <- build_expr("cast", time1, options = cast_options(to_type =
timestamp(timezone = "UTC")))
+ time1 <- build_expr("cast", time1, options = cast_options(to_type =
timestamp()))
}
if (!call_binding("is.instant", time2)) {
- time2 <- build_expr("cast", time2, options = cast_options(to_type =
timestamp(timezone = "UTC")))
+ time2 <- build_expr("cast", time2, options = cast_options(to_type =
timestamp()))
Review Comment:
Necessary for this PR.
--
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]