projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
display dates as real dates in Excel export, #23121, update for current RT
[freeside.git]
/
rt
/
share
/
html
/
Search
/
Results.xls
diff --git
a/rt/share/html/Search/Results.xls
b/rt/share/html/Search/Results.xls
index
8b94e22
..
d9d8356
100644
(file)
--- a/
rt/share/html/Search/Results.xls
+++ b/
rt/share/html/Search/Results.xls
@@
-118,11
+118,11
@@
my $WriteRow = sub {
$row++;
};
$row++;
};
-
my $FormatDate =
sub {
+
$m->notes('FormatDate',
sub {
my $DateObj = shift;
return '' if $DateObj->Unix == 0;
return time2str('%Y-%m-%dT%H:%M', $DateObj->Unix);
my $DateObj = shift;
return '' if $DateObj->Unix == 0;
return time2str('%Y-%m-%dT%H:%M', $DateObj->Unix);
-};
+}
)
;
# Write everything to the worksheet
$m->comp('Elements/ResultsStructuredView',
# Write everything to the worksheet
$m->comp('Elements/ResultsStructuredView',
@@
-132,7
+132,6
@@
$m->comp('Elements/ResultsStructuredView',
Format => $Format,
WriteHeader => $WriteHeader,
WriteRow => $WriteRow,
Format => $Format,
WriteHeader => $WriteHeader,
WriteRow => $WriteRow,
- FormatDate => $FormatDate,
);
# Set column widths
);
# Set column widths