Skip to content

Avoran/doctrine-dbal-datetime-default-tz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

doctrine-dbal-datetime-default-tz

A Doctine DBAL Custom Mapping Type allowing the use of PHP DateTime objects automatically set to the system's default timezone.

Install via composer:

composer require avoran/doctrine-dbal-datetime-default-tz:~1.0

Add the custom type before instantiating your entity manager:

use Doctrine\DBAL\Types\Type;
Type::addType('datetime_default_tz', 'Avoran\Doctrine\DBAL\Types\DateTimeDefaultTzType');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages