From 88eb228f770f1c239b80d2ac6bf5b6a54fad00a7 Mon Sep 17 00:00:00 2001 From: iliajie Date: Thu, 16 Mar 2023 20:42:15 +0200 Subject: [PATCH] Fix to always set time to "beginning" in case of `undef` value --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index c4f577620..269879558 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -1989,7 +1989,7 @@ code or preserve the original, old logic sub make_date { my ($secs, $only, $fmt) = @_; - +$secs ||= 0; eval "use DateTime; use DateTime::Locale; use DateTime::TimeZone;"; if (!$@) { my $opts = ref($only) ? $only : {};