From cc74a2ee8bdbb95e5e602734bc6aaa0b9849b644 Mon Sep 17 00:00:00 2001 From: wwwwwwwww <526125649@qq.com> Date: Mon, 6 Jul 2026 18:23:40 +0800 Subject: [PATCH] 1 --- video-gen-api/app/api/v1/team.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video-gen-api/app/api/v1/team.py b/video-gen-api/app/api/v1/team.py index b7e2a0a5..6bf2fe53 100644 --- a/video-gen-api/app/api/v1/team.py +++ b/video-gen-api/app/api/v1/team.py @@ -347,6 +347,7 @@ async def export_team_credit_records( # 生成 CSV(兼容 Excel 打开) import csv import io + from datetime import datetime output = io.StringIO() writer = csv.writer(output) @@ -359,7 +360,7 @@ async def export_team_credit_records( item.get("amount", 0), item.get("balance_after", 0), item.get("description") or "-", - item.get("created_at") or "-", + datetime.fromisoformat(item.get("created_at") or "-").strftime("%Y-%m-%d %H:%M:%S"), ]) from starlette.responses import StreamingResponse