Fix to always set time to "beginning" in case of undef value

This commit is contained in:
iliajie
2023-03-16 20:42:15 +02:00
parent 7c40195c14
commit 88eb228f77

View File

@@ -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 : {};