fix: handle URL-decoded '+' in timezone offset for sync endpoint

The '+' in '+00:00' timezone offsets gets URL-decoded to a space,
causing datetime.fromisoformat() to fail with ValueError. Replace
spaces back to '+' before parsing.
This commit is contained in:
Viktor Barzin 2026-03-15 02:33:52 +00:00
parent a52afe050d
commit 9b618711ee
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

@ -69,7 +69,7 @@ async def sync_memories(
async with pool.acquire() as conn:
if since:
since_dt = datetime.fromisoformat(since)
since_dt = datetime.fromisoformat(since.replace(' ', '+'))
rows = await conn.fetch(
"""
SELECT id, content, category, tags, expanded_keywords, importance,