mirror of
https://github.com/reconurge/flowsint.git
synced 2026-07-11 13:35:22 -05:00
[PR #191] fix: use aware timestamp for fraud score updates #3563
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/191
Author: @Ghraven
Created: 6/21/2026
Status: 🔄 Open
Base:
main← Head:fix/fraudscore-aware-utc📝 Commits (1)
0485fc1fix: use aware timestamp for fraud score updates📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
flowsint-enrichers/src/flowsint_enrichers/ip/to_fraudscore.py(+7 -1)📄 Description
Problem: the Scamalytics IP enricher used datetime.utcnow() when setting RiskProfile.last_updated. That helper is deprecated and returns a naive UTC timestamp.
Before / after: before, fraud score updates stored a naive UTC ISO string. After, the timestamp is produced with datetime.datetime.now(datetime.timezone.utc).isoformat(), preserving UTC while including explicit timezone information.
Verification: python -m py_compile flowsint-enrichers\src\flowsint_enrichers\ip\to_fraudscore.py
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.