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:
parent
a52afe050d
commit
9b618711ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue