mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
Merge pull request #1146 from jamiepine/prep/pr-659
fix: replace deprecated datetime.utcnow() with datetime.now(UTC) throughout
This commit is contained in:
@@ -4,7 +4,7 @@ import io
|
||||
import json as _json
|
||||
import logging
|
||||
import tempfile
|
||||
from datetime import datetime
|
||||
from datetime import UTC, datetime
|
||||
from pathlib import Path
|
||||
|
||||
from fastapi import APIRouter, Depends, File, Form, HTTPException, UploadFile
|
||||
@@ -356,7 +356,7 @@ async def update_profile_effects(
|
||||
else:
|
||||
profile.effects_chain = None
|
||||
|
||||
profile.updated_at = datetime.utcnow()
|
||||
profile.updated_at = datetime.now(UTC)
|
||||
db.commit()
|
||||
db.refresh(profile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user