From f170f68df81a531091578baca25c789076a3c467 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" <> Date: Tue, 5 Jan 2010 07:05:59 +0000 Subject: Bug 534587 - "Bugmail uses the timezone of the changee instead of the user receiving the mail" [p=reed r=mkanat a=mkanat] --- Bugzilla/Util.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Util.pm') 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}))?$/) { -- cgit v1.2.3-24-g4f1b