Skip to content

Commit

Permalink
Fix expanded bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldecicco-USGS committed Jan 26, 2016
1 parent 0f8c5c9 commit 66a85d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/importRDB1.r
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ importRDB1 <- function(obs_url, asDateTime=TRUE, convertType = TRUE, tz=""){

if("tz_cd" %in% header.names){
date.time.cols <- which(sapply(readr.data, function(x) inherits(x, "POSIXct")))
readr.data <- convertTZ(readr.data,"tz_cd",date.time.cols,tz, flip.cols=FALSE)
if(length(date.time.cols) > 0){
readr.data <- convertTZ(readr.data,"tz_cd",date.time.cols,tz, flip.cols=FALSE)
}
}

if("DATE" %in% header.names){
Expand Down

0 comments on commit 66a85d2

Please sign in to comment.