my $vars = {
isnew => $isnew,
to => $user->email,
+ to_user => $user,
bugid => $id,
alias => Bugzilla->params->{'usebugaliases'} ? $values{'alias'} : "",
classification => $values{'classification'},
sub format_time {
my ($date, $format, $timezone) = @_;
- # If $format is undefined, try to guess the correct date format.
- if (!defined($format)) {
+ # If $format is not set, try to guess the correct date format.
+ if (!$format) {
if ($date =~ m/^(\d{4})[-\.](\d{2})[-\.](\d{2}) (\d{2}):(\d{2})(:(\d{2}))?$/) {
my $sec = $7;
if (defined $sec) {
[% FOREACH comment = new_comments %]
[%- IF comment.count %]
---- Comment #[% comment.count %] from [% comment.author.identity %] [%+ comment.time FILTER time %] ---
+--- Comment #[% comment.count %] from [% comment.author.identity %] [%+ comment.time FILTER time(undef, to_user.timezone) %] ---
[% END %]
[%+ FILTER remove('^X') %][% PROCESS bug/format_comment.txt.tmpl %][% END %]
[% END %]