Thanks Yarkko,
I've created a bug and resolve report at:
https://openacs.org/bugtracker/openacs/bug?filter%2estatus=resolved&bug%5fnumber=1961
with the following:
in packages/robot-detection/tcl/robot-detection-procs-postgresql.xql
change:
===============================================
select trunc(current_timestamp - max(coalesce(modified_date, in\
sertion_date))) from robots
===============================================
with
===============================================
select date_part('days',current_timestamp - max(coalesce(modified_date,insertion_date))) from robots
===============================================
Thank you again.