mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 23:28:39 +00:00
allow dynamic d parameter population
This commit is contained in:
parent
c2f025e59d
commit
5892819542
|
|
@ -56,8 +56,8 @@ class SmartDateTime extends \DateTime
|
||||||
public function __construct(string $datetime = 'now', DateTimeZone $timezone = null)
|
public function __construct(string $datetime = 'now', DateTimeZone $timezone = null)
|
||||||
{
|
{
|
||||||
$parsed = \str_replace(
|
$parsed = \str_replace(
|
||||||
['Y', 'm'],
|
['Y', 'm', 'd'],
|
||||||
[\date('Y'), \date('m')],
|
[\date('Y'), \date('m'), \date('d')],
|
||||||
$datetime
|
$datetime
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user