1
This commit is contained in:
@@ -351,9 +351,8 @@ async def export_team_credit_records(
|
||||
def _format_dt(val):
|
||||
if val is None:
|
||||
return "-"
|
||||
if isinstance(val, datetime):
|
||||
return val.strftime("%Y-%m-%d %H:%M:%S")
|
||||
return str(val)
|
||||
|
||||
return str(datetime.fromtimestamp(val).strftime("%Y-%m-%d %H:%M:%S"))
|
||||
|
||||
output = io.StringIO()
|
||||
writer = csv.writer(output)
|
||||
|
||||
Reference in New Issue
Block a user