diff --git a/lib/DDG/Goodie/TimezoneConverter.pm b/lib/DDG/Goodie/TimezoneConverter.pm index d35944d98..e6c7a8015 100644 --- a/lib/DDG/Goodie/TimezoneConverter.pm +++ b/lib/DDG/Goodie/TimezoneConverter.pm @@ -151,6 +151,7 @@ handle query => sub { return unless defined $gmt_input_timezone; my $gmt_output_timezone = parse_timezone $output_timezone; + return unless defined($gmt_output_timezone); $modifier += $gmt_output_timezone - $gmt_input_timezone; for ( $gmt_input_timezone, $gmt_output_timezone ) {