From dbb539e1d3b40560fd3e17f6a8958287e54575da Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 29 Feb 2012 15:53:45 +0000 Subject: [PATCH] Log the format attempted --- importexport/inc/class.importexport_import_csv.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_import_csv.inc.php b/importexport/inc/class.importexport_import_csv.inc.php index 99494a5628..e1af4a89ff 100755 --- a/importexport/inc/class.importexport_import_csv.inc.php +++ b/importexport/inc/class.importexport_import_csv.inc.php @@ -342,13 +342,15 @@ class importexport_import_csv implements importexport_iface_import_record { //, try { $formatted = new egw_time($record[$name]); } catch (Exception $e) { - $warnings[] = $name.': ' . $e->getMessage(); + $warnings[] = $name.': ' . $e->getMessage() . "\n" . + 'Format: '.'!'.egw_time::$user_dateformat . ' ' .egw_time::$user_timeformat; continue; } $errors = egw_time::getLastErrors(); foreach($errors['errors'] as $char => $msg) { - $warnings[] = "$name: [$char] $msg"; + $warnings[] = "$name: [$char] $msg\n". + 'Format: '.'!'.egw_time::$user_dateformat . ' ' .egw_time::$user_timeformat; } } }