diff options
| author | Mark Wells <mark@freeside.biz> | 2015-08-17 22:22:02 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-08-17 22:23:03 -0700 |
| commit | e4f07ef831954aab40e8f5d97d3361ee34aaf2c5 (patch) | |
| tree | 02ae1357a28a48d155ecec8c13523f513c4bbf39 /rt/share/html/Elements/ShowCustomFieldDateTime | |
| parent | 4c6c74a8b4fbff04f99e37b4dfb91d757a158c2c (diff) | |
display dates as real dates in Excel export, #23121, update for current RT
Diffstat (limited to 'rt/share/html/Elements/ShowCustomFieldDateTime')
| -rw-r--r-- | rt/share/html/Elements/ShowCustomFieldDateTime | 6 |
1 files changed, 5 insertions, 1 deletions
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; + } </%INIT> <%$content|n%> <%ARGS> |
