Skip to content

Commit

Permalink
Update SDMXHeader-methods.R
Browse files Browse the repository at this point in the history
Fix reportBegin element to maintain the format Y-m-DTH:M:S
  • Loading branch information
bobsan16 authored Mar 22, 2017
1 parent 0b516f3 commit 891ceeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/SDMXHeader-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ SDMXHeader <- function(xmlObj, namespaces){
reportBegin <- ISOdate(as.integer(reportBegin),1,1)
reportFormat <- "%Y-%m-%d";
}else{
if(attr(regexpr("T", extracted),"match.length") != -1){
if(attr(regexpr("T", reportBegin),"match.length") != -1){
reportFormat <- "%Y-%m-%dT%H:%M:%S";
}else{
reportFormat <- "%Y-%m-%d %H:%M:%S";
Expand Down

0 comments on commit 891ceeb

Please sign in to comment.