]> git.openstreetmap.org Git - nominatim.git/commitdiff
now data isn't so lagy show the 'real' import date
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 31 Jan 2013 15:36:51 +0000 (15:36 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 31 Jan 2013 15:36:51 +0000 (15:36 +0000)
website/search.php

index 2c1d2befecce66307a15714e7254c70fd53d378c..00ac3b9554f584b3cf2b7ad129418a27aca76a47 100755 (executable)
                if (sizeof($aSearchResults) >= $iFinalLimit) break;
        }
 
-       $sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '1 day'::interval,'YYYY/MM/DD') from import_status limit 1");
+       $sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '2 minutes'::interval,'YYYY/MM/DD HH24:MI')||' GMT' from import_status limit 1");
 
        if (isset($_GET['nearlat']) && isset($_GET['nearlon']))
        {