Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt-extension-localdateheader
Commits
ac97205d
Commit
ac97205d
authored
Aug 28, 2012
by
sunnavy
Browse files
just show the date if it's already the user's timezone
parent
c2cec9eb
Changes
1
Show whitespace changes
Inline
Side-by-side
html/Callbacks/LocalDateHeader/Ticket/Elements/ShowMessageHeaders/BeforeLocalization
View file @
ac97205d
...
...
@@ -10,7 +10,7 @@ for my $header ( @$headers ) {
Timezone => 'UTC',
);
if ( $date->Unix ) {
if ( $date->Unix
&& $header->{Value} ne $date->RFC2822(Timezone => 'user')
) {
$header->{Value} = $date->RFC2822(Timezone => 'user') . qq! <span style="color:grey">($header->{Value})</span>!;
}
}
...
...
Write
Preview
Supports
Markdown
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