forked from extern/egroupware
Convert date/time to timestamp
This commit is contained in:
parent
7b804f41a4
commit
49f8cc3258
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user