File "DateTime.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Database/Orm/DateTime.php
File size: 493 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace FluentForm\Framework\Database\Orm;
use DateTime as PHPDateTime;
use FluentForm\Framework\Database\Orm\ModelHelperTrait;
Class DateTime extends PHPDateTime
{
use ModelHelperTrait;
public function __construct($datetime = "now", $timezone = null)
{
$timezone = $timezone ?: $this->getTimezone();
parent::__construct($datetime, $timezone);
}
public function __toString()
{
return $this->format($this->getDateFormat());
}
}