Commit 5fc4abc1 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1003: fix test on production date

parent 3f8f165c
...@@ -369,15 +369,9 @@ IkonosImageMetadataInterface ...@@ -369,15 +369,9 @@ IkonosImageMetadataInterface
int productionMonth = this->GetProductionMonth(); int productionMonth = this->GetProductionMonth();
int productionDay = this->GetProductionDay(); int productionDay = this->GetProductionDay();
bool isPost20010122 = false; bool isPost20010122 = false;
if ((productionYear > 2) || (productionYear < 99)) isPost20010122 = true; if ((productionDay + 100 * productionMonth + 10000 * productionYear) >= 20010122)
else
{ {
if (productionYear == 2) isPost20010122 = true;
{
if (productionMonth > 1) isPost20010122 = true;
else
if (productionDay >= 22) isPost20010122 = true;
}
} }
//Value computed from //Value computed from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment