Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
best-practical
rt-extension-localdateheader
Commits
c2cec9eb
Commit
c2cec9eb
authored
Aug 28, 2012
by
sunnavy
Browse files
remove heading and trailing values from date value
parent
f5df9ac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
html/Callbacks/LocalDateHeader/Ticket/Elements/ShowMessageHeaders/BeforeLocalization
...der/Ticket/Elements/ShowMessageHeaders/BeforeLocalization
+2
-0
No files found.
html/Callbacks/LocalDateHeader/Ticket/Elements/ShowMessageHeaders/BeforeLocalization
View file @
c2cec9eb
<%init>
for my $header ( @$headers ) {
if ( $header->{Tag} eq 'Date' && $header->{Value} ) {
$header->{Value} =~ s!^\s+!!;
$header->{Value} =~ s!\s+$!!;
my $date = RT::Date->new($session{CurrentUser});
$date->Set(
Format => 'unknown',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment