fix typo in tz setup

This commit is contained in:
Chris 2024-06-05 11:39:41 +01:00
parent ea0a3643c8
commit 7a4f4182b3

View File

@ -903,7 +903,7 @@ sub format_time {
my $format = shift // $self -> {"timefmt"};
return "" unless($time);
my $datestr = eval { DateTime -> from_epoch(epoch => $time, time_zone = $self -> {"tz"} // "Europe/London") -> strftime($format); };
my $datestr = eval { DateTime -> from_epoch(epoch => $time, time_zone => $self -> {"tz"} // "Europe/London") -> strftime($format); };
return "" if($@);
return $datestr;