Fix DBAPIError: use DateTime(timezone=True) and timezone-aware defaults in database models

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianlouis/pop_puller_to_gmail/sessions/608dd6ae-4c0c-4076-a2e3-dec62c9923f3
This commit is contained in:
copilot-swe-agent[bot]
2026-03-24 19:05:38 +00:00
parent 3ac7d76c2b
commit fbfb4f0f41
3 changed files with 93 additions and 29 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ Comprehensive task breakdown for repository improvements and production readines
### In Progress 🔨
- [ ] Enable rate limiting per user/tier
- [x] Fix bare exception handlers throughout codebase
- [x] Update datetime usage to timezone-aware (datetime.now(timezone.utc))
- [x] Update datetime usage to timezone-aware (`DateTime(timezone=True)` columns and `lambda: datetime.now(timezone.utc)` defaults; fixes `DBAPIError` from asyncpg on timezone-naive columns)
- [ ] Validate redirect_uri to prevent open redirect vulnerabilities
- [ ] Add per-user random salt for encryption (currently deterministic)