-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/1601 ensure utc in database #46
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #46 +/- ##
============================================
- Coverage 0.40% 0.39% -0.02%
- Complexity 861 896 +35
============================================
Files 124 128 +4
Lines 3174 3260 +86
============================================
Hits 13 13
- Misses 3161 3247 +86
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
src/Doctrine/Extensions/DBAL/Types/UTCDateTimeImmutableType.php
Outdated
Show resolved
Hide resolved
public const string VIEW_TIMEZONE = 'Europe/Copenhagen'; | ||
|
||
// Default date time format used in the UI. | ||
// | ||
// @see https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax | ||
public const DATETIME_FORMAT = 'dd-MM-Y HH:mm:ss'; | ||
public const string DATETIME_FORMAT = 'dd-MM-Y HH:mm:ss'; | ||
public const string TIME_FORMAT = 'HH:mm:ss'; | ||
public const string DATE_FORMAT = 'dd-MM-Y'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting the “view” and “format” values from config (.env.local
) would be really nice, but it may require a lot of effort.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are unlikely to change in the applications lifetime so will leave as is for now.
Co-authored-by: Mikkel Ricky <rimi@aarhus.dk>
Link to ticket
https://leantime.itkdev.dk/dashboard/show#/tickets/showTicket/1601
Description
Ensure all datetime fields are persisted as UTC in the database. See ADR 008 for background and discussion.
Screenshot of the result
N/A
Checklist
If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.
Additional comments or questions
If you have any further comments or questions for the reviewer please add them here.