]> git.openstreetmap.org Git - nominatim.git/commitdiff
import time uses UTC
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 13 Oct 2012 07:06:26 +0000 (09:06 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 13 Oct 2012 07:06:26 +0000 (09:06 +0200)
munin/nominatim_importlag

index 8d69f3cee7d3ded8472ca9dbc6ec2c0d7a002152..a118e0b652972e47b5bb09f62badc91202d40665 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"