simpod/doctrine-utcdatetime
最新稳定版本:0.3.0
Composer 安装命令:
composer require simpod/doctrine-utcdatetime
包简介
Doctrine UTC DateTime
README 文档
README
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.
Using the UTCDateTimeType
Installation
composer require simpod/doctrine-utcdatetime
Overriding default types in Symfony
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
统计信息
- 总下载量: 240.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-09