初始化
This commit is contained in:
12
addons/webman/traits/HasDateTimeFormatter.php
Normal file
12
addons/webman/traits/HasDateTimeFormatter.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace addons\webman\traits;
|
||||
|
||||
|
||||
trait HasDateTimeFormatter
|
||||
{
|
||||
protected function serializeDate(\DateTimeInterface $date)
|
||||
{
|
||||
return $date->format($this->getDateFormat());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user