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