Skip to content

fix: use aware timestamp for fraud score updates#191

Merged
dextmorgn merged 1 commit into
reconurge:mainfrom
Ghraven:fix/fraudscore-aware-utc
Jul 1, 2026
Merged

fix: use aware timestamp for fraud score updates#191
dextmorgn merged 1 commit into
reconurge:mainfrom
Ghraven:fix/fraudscore-aware-utc

Conversation

@Ghraven

@Ghraven Ghraven commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

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

@dextmorgn dextmorgn merged commit 0d092c4 into reconurge:main Jul 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants