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.

1.0.4 2015-02-05 11:31 UTC

This package is auto-updated.

Last update: 2024-05-10 20:19:00 UTC


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');