avoran / doctrine-dbal-datetime-default-tz
A custom Doctine DBAL type to use PHP DateTime objects set to the system's default timezone.
Installs: 6 580
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
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');