]> git.openstreetmap.org Git - nominatim.git/commitdiff
timezone trouble
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 26 Apr 2012 22:05:55 +0000 (00:05 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 26 Apr 2012 22:05:55 +0000 (00:05 +0200)
munin/nominatim_importlag

index 8d69f3cee7d3ded8472ca9dbc6ec2c0d7a002152..657938dbd2672a1fcfd95aab951f251f7c7f756b 100755 (executable)
@@ -21,7 +21,7 @@ if [ "$1" = "config" ]; then
 fi
  
 
-delay=`psql -d nominatim -c 'copy (select extract(epoch from now()-lastimportdate)::int from import_status) to stdout'`
+delay=`psql -d nominatim -c 'copy (select extract(epoch from timezone('utc', now())-lastimportdate)::int from import_status) to stdout'`
  
  
 echo "age.value $delay"