⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.176
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
vendor
/
doctrine
/
dbal
/
src
/
Types
/
View File Name :
VarDateTimeType.php
<?php namespace Doctrine\DBAL\Types; use DateTime; use Doctrine\DBAL\Platforms\AbstractPlatform; use function date_create; /** * Variable DateTime Type using date_create() instead of DateTime::createFromFormat(). * * This type has performance implications as it runs twice as long as the regular * {@see DateTimeType}, however in certain PostgreSQL configurations with * TIMESTAMP(n) columns where n > 0 it is necessary to use this type. */ class VarDateTimeType extends DateTimeType { /** * {@inheritdoc} */ public function convertToPHPValue($value, AbstractPlatform $platform) { if ($value === null || $value instanceof DateTime) { return $value; } $val = date_create($value); if ($val === false) { throw ConversionException::conversionFailed($value, $this->getName()); } return $val; } }