Skip to content

Commit

Permalink
#167 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Feb 21, 2020
1 parent e091cf0 commit 6bab687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ISOAbstractObject.R
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ ISOAbstractObject <- R6Class("ISOAbstractObject",
if(suppressWarnings(all(class(value)==c("POSIXct","POSIXt")))){
tz <- attr(value, "tzone")
value <- format(value,"%Y-%m-%dT%H:%M:%S")
if(tz=="UTC") value <- paste0(value,"Z")
if(length(tz)>0) if(tz=="UTC") value <- paste0(value,"Z")
}else if(class(value)[1] == "Date"){
value <- format(value,"%Y-%m-%d")
}
Expand Down

0 comments on commit 6bab687

Please sign in to comment.