diff --git a/R/xts.R b/R/xts.R index d49c9130..4bb062c2 100644 --- a/R/xts.R +++ b/R/xts.R @@ -76,7 +76,7 @@ function(x=NULL, x <- as.matrix(x) } else x <- numeric(0) - if(orderBy == "timeDate" && missing(tzone)) { + if(orderBy[1L] == "timeDate" && missing(tzone)) { tzone <- order.by@FinCenter } else if(!is.null(attr(order.by,"tzone")) && missing(tzone))