From 67e5d805dc5c8ecc6a110d447d3a7a7515b35518 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Wed, 12 Oct 2016 13:19:12 -0400 Subject: [PATCH] Update export --- admin/export.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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"; + } } }