avoran / doctrine-dbal-datetime-default-tz
There is no license information available for the latest version (1.0.4) of this package.
A custom Doctine DBAL type to use PHP DateTime objects set to the system's default timezone.
Package info
github.com/Avoran/doctrine-dbal-datetime-default-tz
pkg:composer/avoran/doctrine-dbal-datetime-default-tz
1.0.4
2015-02-05 11:31 UTC
Requires
- php: >=5.3.2
- doctrine/dbal: ~2.4
README
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');