fixed wrong month in the data conversion.
This commit is contained in:
parent
450a5c9d1b
commit
c6cee9f6d8
@ -6154,7 +6154,7 @@ bool PRunDataHandler::DateToISO8601(string inDate, string &iso8601Date)
|
||||
return false;
|
||||
|
||||
TString str("");
|
||||
str.Form("%04d-%02d-%02d", 1900+tm.tm_year, tm.tm_mon, tm.tm_mday);
|
||||
str.Form("%04d-%02d-%02d", 1900+tm.tm_year, tm.tm_mon+1, tm.tm_mday);
|
||||
|
||||
iso8601Date = str.Data();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user