aboutsummaryrefslogtreecommitdiffstats
path: root/include/nms/web.pm
diff options
context:
space:
mode:
Diffstat (limited to 'include/nms/web.pm')
-rwxr-xr-xinclude/nms/web.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nms/web.pm b/include/nms/web.pm
index 8a20f50..18fe919 100755
--- a/include/nms/web.pm
+++ b/include/nms/web.pm
@@ -67,7 +67,7 @@ sub setwhen {
$offset = $_[1];
}
if (defined($get_params{'now'})) {
- $now = db_safe_quote('now') . "::timestamp with time zone ";
+ $now = "timestamp with time zone 'epoch' + " . db_safe_quote('now') . " * INTERVAL '1 second' ";
$cc{'max-age'} = "3600";
}
$now = "(" . $now . " - '" . $offset . "'::interval)";