feat: add versioned research templates and alpha variants
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"""Serialize UTC database timestamps consistently across PostgreSQL and SQLite."""
|
||||
|
||||
from datetime import datetime, timezone
|
||||
|
||||
from fastapi.encoders import jsonable_encoder
|
||||
|
||||
|
||||
def encode_snapshot(value):
|
||||
return jsonable_encoder(
|
||||
value,
|
||||
custom_encoder={datetime: lambda item: item.replace(tzinfo=item.tzinfo or timezone.utc).isoformat()},
|
||||
)
|
||||
Reference in New Issue
Block a user