diff options
| author | reed%reedloden.com <> | 2010-01-05 07:05:59 +0000 |
|---|---|---|
| committer | reed%reedloden.com <> | 2010-01-05 07:05:59 +0000 |
| commit | f170f68df81a531091578baca25c789076a3c467 (patch) | |
| tree | f32a2ae8d30257d420167cc9dc5a7b1495bcac2d /Bugzilla | |
| parent | 0c266590b454f88f55fb4b39a5bce5532ca5baa0 (diff) | |
| download | bugs-f170f68df81a531091578baca25c789076a3c467.tar bugs-f170f68df81a531091578baca25c789076a3c467.tar.gz bugs-f170f68df81a531091578baca25c789076a3c467.tar.bz2 bugs-f170f68df81a531091578baca25c789076a3c467.tar.xz bugs-f170f68df81a531091578baca25c789076a3c467.zip | |
Bug 534587 - "Bugmail uses the timezone of the changee instead of the user receiving the mail" [p=reed r=mkanat a=mkanat]
Diffstat (limited to 'Bugzilla')
| -rw-r--r-- | Bugzilla/BugMail.pm | 2 | ||||
| -rw-r--r-- | Bugzilla/Util.pm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 2aff7daf4..f7af921eb 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -612,7 +612,7 @@ sub sendMail { my $vars = { isnew => $isnew, - to => $user->email, + to_user => $user, bugid => $id, alias => Bugzilla->params->{'usebugaliases'} ? $values{'alias'} : "", classification => $values{'classification'}, diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index ca2506ffa..437979c85 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -413,8 +413,8 @@ sub wrap_hard { 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 (!ref $date && $date =~ /^(\d{4})[-\.](\d{2})[-\.](\d{2}) (\d{2}):(\d{2})(:(\d{2}))?$/) { |
