correctly handle googlecode times versus local times

This commit is contained in:
Pavol Zibrita 2012-04-03 04:46:40 +02:00
parent 0b17da9d5d
commit 90b05dd23c

View file

@ -118,7 +118,8 @@ function updateGoogleCodeIndexes($update=false) {
$zip->close();
if (isset($mapNodes[$indexName])) {
$exdate = DateTime::createFromFormat('d.m.Y', $mapNodes[$indexName]->getAttribute("date"));
if($stat['mtime'] < $exdate->getTimestamp()) {
$localdate = DateTime::createFromFormat('d.m.Y', $date);
if($localdate->getTimestamp() <= $exdate->getTimestamp()) {
continue;
}
$out = $mapNodes[$indexName];