Skip to content

Commit

Permalink
Fixing errors introduced with the changes to ProcessExportPds4.cpp fo…
Browse files Browse the repository at this point in the history
…r the tgo sprint. (#3202)
  • Loading branch information
SgStapleton authored and krlberry committed Mar 29, 2019
1 parent 3f568f4 commit 29a6457
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions isis/src/base/objs/ProcessExportPds4/ProcessExportPds4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,18 +304,11 @@ namespace Isis {
if (startTime.text() == "") {
startTime.setAttribute("xsi:nil", "true");
}
else {
QString timeValue = startTime.text();
PvlToXmlTranslationManager::resetElementValue(startTime, timeValue + "Z");
}

QDomElement stopTime = timeNode.firstChildElement("stop_date_time");
if (stopTime.text() == "") {
stopTime.setAttribute("xsi:nil", "true");
}
else {
QString timeValue = stopTime.text();
PvlToXmlTranslationManager::resetElementValue(stopTime, timeValue + "Z");
}

QStringList xmlPath;
xmlPath << "Product_Observational"
Expand Down
4 changes: 2 additions & 2 deletions isis/src/tgo/apps/tgocassis2isis/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ void translateLabels(FileName &inputLabel, Cube *outputCube, QString instTransFi
PvlKeyword *startTime = &outputLabel->findGroup("Instrument", Pvl::Traverse)["StartTime"];
QString startTimeString = startTime[0];
if (startTimeString.endsWith("Z", Qt::CaseInsensitive)) {
startTimeString.chop(2);
startTimeString.chop(1);
startTime->setValue(startTimeString);
}

if (outputLabel->hasGroup("StopTime")) {
PvlKeyword *stopTime = &outputLabel->findGroup("Instrument", Pvl::Traverse)["StopTime"];
QString stopTimeString = stopTime[0];
if (stopTimeString.endsWith("Z", Qt::CaseInsensitive)){
stopTimeString.chop(2);
stopTimeString.chop(1);
stopTime->setValue(stopTimeString);
}
}
Expand Down

0 comments on commit 29a6457

Please sign in to comment.