prevent error for invalid output timezone

master
Brian Duggan 2014-02-08 12:41:09 -05:00
parent bb12adeb1e
commit 77606a810f
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) {