{"id":16485981,"url":"https://github.com/simpod/doctrine-utcdatetime","last_synced_at":"2026-03-03T23:31:42.119Z","repository":{"id":33113413,"uuid":"152236899","full_name":"simPod/doctrine-utcdatetime","owner":"simPod","description":"UTC DateTime types for Doctrine DBAL and ORM","archived":false,"fork":false,"pushed_at":"2025-02-07T10:07:51.000Z","size":75,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T22:39:04.553Z","etag":null,"topics":["datetime","doctrine","doctrine-dbal","doctrine-orm","immutable","orm","php","utcdatetime"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simPod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["simPod"]}},"created_at":"2018-10-09T11:07:04.000Z","updated_at":"2024-11-14T20:52:21.000Z","dependencies_parsed_at":"2024-02-04T12:30:07.629Z","dependency_job_id":"4a0d92da-af39-4b7a-991b-f3f70966a7ff","html_url":"https://github.com/simPod/doctrine-utcdatetime","commit_stats":{"total_commits":43,"total_committers":5,"mean_commits":8.6,"dds":"0.39534883720930236","last_synced_commit":"9985985ad55b15e9eec35013f646ad43b0b9a86a"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simPod%2Fdoctrine-utcdatetime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simPod%2Fdoctrine-utcdatetime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simPod%2Fdoctrine-utcdatetime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simPod%2Fdoctrine-utcdatetime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simPod","download_url":"https://codeload.github.com/simPod/doctrine-utcdatetime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244757544,"owners_count":20505417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datetime","doctrine","doctrine-dbal","doctrine-orm","immutable","orm","php","utcdatetime"],"created_at":"2024-10-11T13:28:00.530Z","updated_at":"2026-03-03T23:31:42.083Z","avatar_url":"https://github.com/simPod.png","language":"PHP","funding_links":["https://github.com/sponsors/simPod"],"categories":[],"sub_categories":[],"readme":"# Doctrine UTCDateTimeType\n\n[![GitHub Actions][GA Image]][GA Link]\n[![Code Coverage][Coverage Image]][CodeCov Link]\n[![Downloads][Downloads Image]][Packagist Link]\n[![Packagist][Packagist Image]][Packagist Link]\n\n[GA Image]: https://github.com/simPod/doctrine-utcdatetime/workflows/CI/badge.svg\n\n[GA Link]: https://github.com/simPod/doctrine-utcdatetime/actions?query=workflow%3A%22CI%22+branch%3Amaster\n\n[Coverage Image]: https://codecov.io/gh/simPod/doctrine-utcdatetime/branch/master/graph/badge.svg\n\n[CodeCov Link]: https://codecov.io/gh/simPod/doctrine-utcdatetime/branch/master\n\n[Downloads Image]: https://poser.pugx.org/simPod/doctrine-utcdatetime/d/total.svg\n\n[Packagist Image]: https://poser.pugx.org/simPod/doctrine-utcdatetime/v/stable.svg\n\n[Packagist Link]: https://packagist.org/packages/simPod/doctrine-utcdatetime\n\nContains DateTime and DateTimeImmutable Doctrine DBAL types that store datetimes in UTC timezone (`TIMESTAMP` type in postgres).\n\nFor more detailed explanation see [Doctrine ORM docs](https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/cookbook/working-with-datetime.html#handling-different-timezones-with-the-datetime-type) and [this comment](https://github.com/simPod/doctrine-utcdatetime/issues/6#issuecomment-722343092).\n\nFor more info about usage in Doctrine ORM see [Doctrine documentation](https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/cookbook/working-with-datetime.html). The code is mostly copied from there.\n\n## Using the UTCDateTimeType\n\n### Installation\n\n```sh\ncomposer require simpod/doctrine-utcdatetime\n```\n\n### Overriding default types in Symfony\n\nSimply copied from DoctrineExtensions' documentation:\n\n``` yaml\ndoctrine:\n    dbal:\n        types:\n            datetime: SimPod\\DoctrineUtcDateTime\\UTCDateTimeType\n            datetimetz: SimPod\\DoctrineUtcDateTime\\UTCDateTimeType\n            datetime_immutable: SimPod\\DoctrineUtcDateTime\\UTCDateTimeImmutableType\n            datetimetz_immutable: SimPod\\DoctrineUtcDateTime\\UTCDateTimeImmutableType\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpod%2Fdoctrine-utcdatetime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpod%2Fdoctrine-utcdatetime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpod%2Fdoctrine-utcdatetime/lists"}