From e4f07ef831954aab40e8f5d97d3361ee34aaf2c5 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 17 Aug 2015 22:22:02 -0700 Subject: display dates as real dates in Excel export, #23121, update for current RT --- rt/share/html/Elements/ShowCustomFieldDateTime | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rt/share/html/Elements/ShowCustomFieldDateTime') diff --git a/rt/share/html/Elements/ShowCustomFieldDateTime b/rt/share/html/Elements/ShowCustomFieldDateTime index 2ba873aad..e179d6a4b 100644 --- a/rt/share/html/Elements/ShowCustomFieldDateTime +++ b/rt/share/html/Elements/ShowCustomFieldDateTime @@ -49,7 +49,11 @@ my $content = $Object->Content; my $DateObj = RT::Date->new ( $session{'CurrentUser'} ); $DateObj->Set( Format => 'ISO', Value => $content ); - $content = $DateObj->AsString; + if ($m->notes('FormatDate')) { + $content = $m->notes('FormatDate')->($DateObj); + } else { + $content = $DateObj->AsString; + } <%$content|n%> <%ARGS> -- cgit v1.2.1