From 58928195425b6370158677e947e01ff2b213358e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 18 Oct 2020 20:50:07 +0200 Subject: [PATCH] allow dynamic d parameter population --- Stdlib/Base/SmartDateTime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Stdlib/Base/SmartDateTime.php b/Stdlib/Base/SmartDateTime.php index 8f10efc49..94e1453cb 100644 --- a/Stdlib/Base/SmartDateTime.php +++ b/Stdlib/Base/SmartDateTime.php @@ -56,8 +56,8 @@ class SmartDateTime extends \DateTime public function __construct(string $datetime = 'now', DateTimeZone $timezone = null) { $parsed = \str_replace( - ['Y', 'm'], - [\date('Y'), \date('m')], + ['Y', 'm', 'd'], + [\date('Y'), \date('m'), \date('d')], $datetime );