Skip to content
Snippets Groups Projects
Commit 1f4c090a authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Explicitly adding UTC attribute.

parent 9d4ed9da
No related branches found
No related tags found
1 merge request!50UTC
......@@ -180,6 +180,8 @@ importRDB1 <- function(obs_url, asDateTime=FALSE, qw=FALSE, convertType = TRUE,
if(tz != ""){
attr(data[,regexpr('d$', dataType) > 0], "tzone") <- tz
} else {
attr(data[,regexpr('d$', dataType) > 0], "tzone") <- "UTC"
}
} else if (qw){
......@@ -223,6 +225,8 @@ importRDB1 <- function(obs_url, asDateTime=FALSE, qw=FALSE, convertType = TRUE,
if(tz != ""){
attr(data$startDateTime, "tzone") <- tz
} else {
attr(data$startDateTime, "tzone") <- "UTC"
}
if(composite){
......@@ -232,6 +236,8 @@ importRDB1 <- function(obs_url, asDateTime=FALSE, qw=FALSE, convertType = TRUE,
if(tz != ""){
attr(data$endDateTime, "tzone") <- tz
} else {
attr(data$endDateTime, "tzone") <- "UTC"
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment