diff --git a/htdocs/lib/xcal.lib.php b/htdocs/lib/xcal.lib.php index 585b80f5c8cc3cef04370143b98a1778f618f9c5..7b72f9b4d04159b1f028b72414b1d71f1b40733e 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='';