Contains DateTime and DateTimeImmutable Doctrine DBAL types that store datetimes in UTC timezone (TIMESTAMP
type in postgres).
For more detailed explanation see Doctrine ORM docs and this comment.
For more info about usage in Doctrine ORM see Doctrine documentation. The code is mostly copied from there.
composer require simpod/doctrine-utcdatetime
Simply copied from DoctrineExtensions' documentation:
doctrine:
dbal:
types:
datetime: SimPod\DoctrineUtcDateTime\UTCDateTimeType
datetimetz: SimPod\DoctrineUtcDateTime\UTCDateTimeType
datetime_immutable: SimPod\DoctrineUtcDateTime\UTCDateTimeImmutableType
datetimetz_immutable: SimPod\DoctrineUtcDateTime\UTCDateTimeImmutableType