Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify and improve consistency in methods that provide current dates #2633

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

phansys
Copy link
Collaborator

@phansys phansys commented Jun 19, 2023

With this change, the returned timestamps are using the very same timestamp as base, regardless the mapping type.
Previously, the timestamps were being created in 3 different moments, so the produced results were slightly different depending on the configured type.

@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2023

Codecov Report

Patch coverage: 75.00% and no project coverage change.

Comparison is base (0db3937) 79.26% compared to head (af50ac1) 79.27%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2633   +/-   ##
=======================================
  Coverage   79.26%   79.27%           
=======================================
  Files         161      161           
  Lines        8400     8404    +4     
=======================================
+ Hits         6658     6662    +4     
  Misses       1742     1742           
Impacted Files Coverage Δ
src/SoftDeleteable/Mapping/Event/Adapter/ODM.php 77.77% <71.42%> (+2.77%) ⬆️
src/SoftDeleteable/Mapping/Event/Adapter/ORM.php 84.61% <71.42%> (+1.28%) ⬆️
src/Timestampable/Mapping/Event/Adapter/ORM.php 84.61% <71.42%> (+1.28%) ⬆️
src/Timestampable/Mapping/Event/Adapter/ODM.php 88.88% <85.71%> (+1.38%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@phansys phansys marked this pull request as ready for review June 19, 2023 15:23
@phansys phansys merged commit 2ed66e3 into doctrine-extensions:main Jun 19, 2023
18 checks passed
@phansys phansys deleted the timestamp branch June 19, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants