From 49f8cc3258a52252e32d224bb8d32e8a745dc906 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 6 Apr 2011 17:22:14 +0000 Subject: [PATCH] Convert date/time to timestamp --- importexport/inc/class.importexport_import_csv.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_import_csv.inc.php b/importexport/inc/class.importexport_import_csv.inc.php index 5609170b9f..60093b1eef 100755 --- a/importexport/inc/class.importexport_import_csv.inc.php +++ b/importexport/inc/class.importexport_import_csv.inc.php @@ -303,10 +303,10 @@ class importexport_import_csv implements importexport_iface_import_record { //, } } foreach((array)$fields['date-time'] as $name) { - if ($record[$name] && !is_numeric($record[$name])) $record[$name] = egw_time::user2server($record[$name]); + if ($record[$name] && !is_numeric($record[$name])) $record[$name] = egw_time::user2server($record[$name],'ts'); } foreach((array)$fields['date'] as $name) { - if ($record[$name] && !is_numeric($record[$name])) $record[$name] = egw_time::user2server($record[$name]); + if ($record[$name] && !is_numeric($record[$name])) $record[$name] = egw_time::user2server($record[$name],'ts'); } // Some custom methods for conversion