mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-24 23:28:40 +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)
|
||||
{
|
||||
$parsed = \str_replace(
|
||||
['Y', 'm'],
|
||||
[\date('Y'), \date('m')],
|
||||
['Y', 'm', 'd'],
|
||||
[\date('Y'), \date('m'), \date('d')],
|
||||
$datetime
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user