[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/cron export_info_as_files.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] property/inc/cron export_info_as_files.php |
Date: |
Fri, 17 Aug 2007 11:20:38 +0000 |
CVSROOT: /sources/phpgroupware
Module name: property
Changes by: Sigurd Nes <sigurdne> 07/08/17 11:20:38
Modified files:
inc/cron : export_info_as_files.php
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/cron/export_info_as_files.php?cvsroot=phpgroupware&r1=1.3&r2=1.4
Patches:
Index: export_info_as_files.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/cron/export_info_as_files.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- export_info_as_files.php 16 Aug 2007 08:21:49 -0000 1.3
+++ export_info_as_files.php 17 Aug 2007 11:20:37 -0000 1.4
@@ -24,7 +24,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage custom
- * @version $Id: export_info_as_files.php,v 1.3 2007/08/16 08:21:49
sigurdne Exp $
+ * @version $Id: export_info_as_files.php,v 1.4 2007/08/17 11:20:37
sigurdne Exp $
*/
/**
@@ -52,6 +52,7 @@
$this->export_method = 'csv';
// $this->export_method = 'excel';
// $this->export_method = 'xml';
+ $this->dateformat = 'd/m/Y';
}
@@ -276,7 +277,7 @@
{
$worksheet1->write($line,$i,
$this->bocommon->utf2ascii($this->db->f($name[$i])));
}
- $worksheet1->write($line,$i,
$GLOBALS['phpgw']->common->show_date(time(),$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']));
+ $worksheet1->write($line,$i,
$GLOBALS['phpgw']->common->show_date(time(),$this->dateformat));
$line++;
}
@@ -301,7 +302,7 @@
{
$content[$j][] =
str_replace(array("\r","\n"),"
",$this->bocommon->utf2ascii($this->db->f($name[$i])));
}
- $content[$j][] =
$GLOBALS['phpgw']->common->show_date(time(),$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
+ $content[$j][] =
$GLOBALS['phpgw']->common->show_date(time(),$this->dateformat);
$j++;
}
@@ -325,7 +326,7 @@
{
$xmlvars[$j][$descr[$i]] =
str_replace(array("\r","\n"),"
",$this->bocommon->utf2ascii($this->db->f($name[$i])));
}
- $xmlvars[$j][$descr[$i]] =
$GLOBALS['phpgw']->common->show_date(time(),$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
+ $xmlvars[$j][$descr[$i]] =
$GLOBALS['phpgw']->common->show_date(time(),$this->dateformat);
$j++;
}