-
Notifications
You must be signed in to change notification settings - Fork 11
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
AAP-31447: reports: use django.utils.timezone.now() to get the current day #1311
AAP-31447: reports: use django.utils.timezone.now() to get the current day #1311
Conversation
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.
LGTM 👍 Great catch.
I converted this to draft until we get the full story from Marty and some proper unit-tests. |
c03ba25
to
26ee2f7
Compare
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.
The test doesn't assert use of timezone
and 20999999_my_report.csv
would pass. I suspect the test was written to keep SonarCloud happy.... but it's better than nothing.
…t day We want to use the `django.utils.timezone.now()` to get a date with UTC TZ.
26ee2f7
to
a04ffed
Compare
Agreed. I'm now doing a parameter validation inside the function. |
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.
Thanks. LGTM 👍
Quality Gate passedIssues Measures |
We want to use the
django.utils.timezone.now()
to get a date with UTC TZ.