diff --git a/admin/export.php b/admin/export.php index 304e9594..fa47396e 100644 --- a/admin/export.php +++ b/admin/export.php @@ -389,6 +389,9 @@ if (isset($_GET['w'])) { + @@ -416,7 +419,15 @@ if (isset($_GET['w'])) { foreach ($hesk_settings['custom_fields'] as $k => $v) { if ($v['use']) { - $tmp .= '' . "\n"; + switch ($v['type']) { + case 'date': + $tmp_dt = hesk_custom_date_display_format($ticket[$k], 'Y-m-d\T00:00:00.000'); + $tmp .= strlen($tmp_dt) ? ''.$tmp_dt : ''; + $tmp .= " \n"; + break; + default: + $tmp .= ' ' . "\n"; + } } }