Skip to content
Snippets Groups Projects
Commit d64eb8d8 authored by Arthur Coolen's avatar Arthur Coolen
Browse files

Task #4044: corrected timestring

parent a378c9da
No related branches found
No related tags found
No related merge requests found
...@@ -2194,7 +2194,9 @@ bool navFunct_lofarDate2PVSSDate(string inDate, time& t) { ...@@ -2194,7 +2194,9 @@ bool navFunct_lofarDate2PVSSDate(string inDate, time& t) {
if (dynlen(strsplit(splittedTime[1],":")) != 3 ) return false; if (dynlen(strsplit(splittedTime[1],":")) != 3 ) return false;
tm = splittedTime[1]; tm = splittedTime[1];
} }
if (dynlen(strsplit(splittedDate[1],"-")) != 3) return false; dyn_string spl_date=strsplit(splittedDate[1],"-");
if (dynlen(spl_date) != 3) return false;
if (strlen(spl_date[2]) > 2) return false;
// change - into . notation // change - into . notation
date=splittedDate[1]; date=splittedDate[1];
strreplace(date,"-","."); strreplace(date,"-",".");
......
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