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
int productionMonth = this->GetProductionMonth();
int productionDay = this->GetProductionDay();
bool isPost20010122 = false;
if ((productionYear > 2) || (productionYear < 99)) isPost20010122 = true;
else
{
if (productionYear == 2)
if ((productionDay + 100 * productionMonth + 10000 * productionYear) >= 20010122)
{
if (productionMonth > 1) isPost20010122 = true;
else
if (productionDay >= 22) isPost20010122 = true;
}
isPost20010122 = true;
}
//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