Use timezone-aware timestamps and update tests

This commit is contained in:
Alexa Amundson
2025-11-16 06:41:33 -06:00
parent 44f928d88e
commit a0f26b8ebc
29 changed files with 110 additions and 71 deletions

View File

@@ -11,6 +11,7 @@ from app.database import get_db
from app.models.user import User
from app.models.file import File, Folder
from app.auth import get_current_active_user
from app.utils import utc_now
router = APIRouter(prefix="/api/files", tags=["Files"])
@@ -217,7 +218,7 @@ async def get_file(
)
# Update last accessed
file.last_accessed = datetime.utcnow()
file.last_accessed = utc_now()
await db.commit()
return file