fix(reporting): use timezone-aware utc datetime in exported reports#2018
Open
NiravaM wants to merge 1 commit into
Open
fix(reporting): use timezone-aware utc datetime in exported reports#2018NiravaM wants to merge 1 commit into
NiravaM wants to merge 1 commit into
Conversation
utksh1
requested changes
Jul 14, 2026
utksh1
left a comment
Owner
There was a problem hiding this comment.
Please remove the unrelated root package-lock.json; this backend timestamp fix should not add an empty frontend lockfile. Also add a focused report-payload test asserting generated_at is UTC-aware/UTC-derived, then rerun checks.
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.
Description
The
generated_attimestamp in exported reports was being populated using a naive local datetime (datetime.now()). This was inconsistent with the timezone-aware UTCdiscovered_attimestamps used elsewhere in the codebase, leading to off-by-timezone confusion in exported reports.This change updates the
generated_atfield generation in the report payload to use a timezone-aware UTC datetime (datetime.now(timezone.utc)).Related Issues
fixes #1829
Type of Change
Checklist