Log the format attempted

This commit is contained in:
Nathan Gray 2012-02-29 15:53:45 +00:00
parent 1d12d66870
commit dbb539e1d3

View File

@ -342,13 +342,15 @@ class importexport_import_csv implements importexport_iface_import_record { //,
try { try {
$formatted = new egw_time($record[$name]); $formatted = new egw_time($record[$name]);
} catch (Exception $e) { } catch (Exception $e) {
$warnings[] = $name.': ' . $e->getMessage(); $warnings[] = $name.': ' . $e->getMessage() . "\n" .
'Format: '.'!'.egw_time::$user_dateformat . ' ' .egw_time::$user_timeformat;
continue; continue;
} }
$errors = egw_time::getLastErrors(); $errors = egw_time::getLastErrors();
foreach($errors['errors'] as $char => $msg) foreach($errors['errors'] as $char => $msg)
{ {
$warnings[] = "$name: [$char] $msg"; $warnings[] = "$name: [$char] $msg\n".
'Format: '.'!'.egw_time::$user_dateformat . ' ' .egw_time::$user_timeformat;
} }
} }
} }