From: Sarah Hoffmann Date: Sat, 13 Oct 2012 07:06:26 +0000 (+0200) Subject: import time uses UTC X-Git-Tag: v2.0.0~6 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/d2a74c9bd95ce7ed4e9ad17a5d54bef2930b7669 import time uses UTC --- diff --git a/munin/nominatim_importlag b/munin/nominatim_importlag index 8d69f3ce..a118e0b6 100755 --- a/munin/nominatim_importlag +++ b/munin/nominatim_importlag @@ -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"