Index: openacs-4/packages/ecommerce/sql/postgresql/pl-sql-utilities.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/sql/postgresql/pl-sql-utilities.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/ecommerce/sql/postgresql/pl-sql-utilities.sql	9 Jul 2001 23:44:19 -0000	1.1
+++ openacs-4/packages/ecommerce/sql/postgresql/pl-sql-utilities.sql	22 Jul 2001 05:20:32 -0000	1.2
@@ -33,7 +33,7 @@
   query_date		alias for $1;
   n_days		alias for $2;
 begin
-  IF (now() - query_date) <= n_days THEN 
+  IF current_timestamp - query_date <= timespan_days(n_days) THEN 
     return 1;
   ELSE
     return 0;
