From d4ce3ee6856e57f0d27d2c314e0ae21a592c2478 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Jul 2011 17:12:03 +0000 Subject: [PATCH] Fix: Function not found --- htdocs/lib/xcal.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/xcal.lib.php b/htdocs/lib/xcal.lib.php index 585b80f5c8c..7b72f9b4d04 100644 --- a/htdocs/lib/xcal.lib.php +++ b/htdocs/lib/xcal.lib.php @@ -20,7 +20,7 @@ /** * \file htdocs/lib/xcal.lib.php * \brief Function to manage calendar files (vcal/ical/...) - * \version $Id$ + * \version $Id: xcal.lib.php,v 1.39 2011/07/08 17:12:03 eldy Exp $ */ /** @@ -45,6 +45,7 @@ function build_calfile($format='vcal',$title,$desc,$events_array,$outputfile) $calfileh=fopen($outputfile,'w'); if ($calfileh) { + include_once(DOL_DOCUMENT_ROOT.'/lib/date.lib.php'); $now=dol_now(); $encoding='';