Index: openacs-4/packages/adserver/tcl/adserver-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/adserver/tcl/adserver-procs-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/adserver/tcl/adserver-procs-postgresql.xql 30 Jan 2002 11:25:25 -0000 1.1 +++ openacs-4/packages/adserver/tcl/adserver-procs-postgresql.xql 6 Nov 2003 17:26:55 -0000 1.2 @@ -21,7 +21,7 @@ update adv_log set display_count = display_count + 1 where adv_key = :adv_key - and entry_date = trunc (current_timestamp) + and entry_date = current_date @@ -32,12 +32,12 @@ insert into adv_log (adv_key, entry_date, display_count) values (:adv_key, - trunc (current_timestamp), + current_date, (select 1 where 0 = (select count (*) from adv_log where adv_key = :adv_key - and entry_date = trunc (current_timestamp)))) + and entry_date = current_date)))