mirror of
https://github.com/webmin/webmin.git
synced 2026-10-04 11:20:38 +01:00
Fix to always set time to "beginning" in case of undef value
This commit is contained in:
@@ -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 : {};
|
||||
|
||||
Reference in New Issue
Block a user