mirror of
https://github.com/reconurge/flowsint.git
synced 2026-07-11 13:35:22 -05:00
[PR #155] [MERGED] fix: use aware timestamp for investigation updates #3420
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/reconurge/flowsint/pull/155
Author: @Ghraven
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @dextmorgn
Base:
main← Head:fix-investigation-aware-timestamp📝 Commits (1)
60cfa16fix: use aware timestamp for investigation updates📊 Changes
2 files changed (+27 additions, -2 deletions)
View changed files
📝
flowsint-core/src/flowsint_core/core/services/investigation_service.py(+2 -2)📝
flowsint-core/tests/services/test_timezone_timestamps.py(+25 -0)📄 Description
Summary
datetime.now(timezone.utc)when updating an investigation timestampInvestigationService.update()Before / after
Before,
InvestigationService.update()assignedlast_updated_atwith a naive UTCdatetime.utcnow()value, while nearby service timestamp paths now use timezone-aware UTC values.After, investigation updates store an aware UTC datetime, keeping the service layer consistent.
Verification
python -m py_compile flowsint-core\src\flowsint_core\core\services\investigation_service.py flowsint-core\tests\services\test_timezone_timestamps.pyI also attempted
python -m pytest flowsint-core\tests\services\test_timezone_timestamps.py. WithPYTHONPATH=flowsint-core\src, collection reached project imports but stopped because this local workspace is missingpasslib.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.