feat(settings): Drop time_zone#12999
Merged
valentijnscholten merged 1 commit intoDefectDojo:devfrom Aug 24, 2025
Merged
Conversation
|
This pull request identifies a logic flaw in the
Logic Flaw due to Date-Only Comparison in
|
| Vulnerability | Logic Flaw due to Date-Only Comparison |
|---|---|
| Description | The sla_violated method uses Q(sla_expiration_date__lt=now().date()). If sla_expiration_date is a DateTimeField, this comparison will not correctly identify SLAs that expire on the current day. Any SLA expiring at any time on the current day will only be flagged as violated on the following day, as its DateTimeField value will not be strictly less than now().date() (which represents the beginning of the current day). This leads to a delay in reporting SLA violations. |
django-DefectDojo/dojo/filters.py
Lines 222 to 228 in f618ae0
All finding details can be found in the DryRun Security Dashboard.
f1c0e88 to
c6a121a
Compare
Maffooch
approved these changes
Aug 18, 2025
dogboat
approved these changes
Aug 19, 2025
Contributor
dogboat
left a comment
There was a problem hiding this comment.
Only one small nit. Approving regardless, thank you!
63051d1 to
f618ae0
Compare
blakeaowens
approved these changes
Aug 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drop support for
time_zoneinSystem settingsreason: #12974 (comment)
There are still some left calling of
get_system_setting("time_zone"), but they will be dropped in #12995