Index: openacs-4/contrib/obsolete-packages/acs-workflow/sql/postgresql/wf-callback-package.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/obsolete-packages/acs-workflow/sql/postgresql/wf-callback-package.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/contrib/obsolete-packages/acs-workflow/sql/postgresql/wf-callback-package.sql	13 Apr 2001 13:36:02 -0000	1.3
+++ openacs-4/contrib/obsolete-packages/acs-workflow/sql/postgresql/wf-callback-package.sql	14 May 2001 23:16:08 -0000	1.4
@@ -54,14 +54,14 @@
 
 
 -- function time_sysdate_plus_x
-create function wf_callback__time_sysdate_plus_x (integer,varchar,varchar)
+create function wf_callback__time_sysdate_plus_x (integer,varchar,text)
 returns timestamp as '
 declare
   time_sysdate_plus_x__case_id          alias for $1;  
   time_sysdate_plus_x__transition_key   alias for $2;  
   time_sysdate_plus_x__custom_arg       alias for $3;  
 begin
-        return now() + to_integer(time_sysdate_plus_x__custom_arg);
+        return now() + (time_sysdate_plus_x__custom_arg || '' days'')::interval;
      
 end;' language 'plpgsql';
 
