我使用 puython 脚本将数据转储到 json 文件,然后从那里将其转换为 csv。
call_command('dumpdata','document_manager.%s' % model_name,format='json',indent=2,stdout=output)
这是生成的 JSON 文件中的日期和时间:
"timestamp": "2014-01-07T08:29:16.857Z",
"date": "2014-01-07T08:29:13Z",
是否可以以这种格式输出它?
2014-01-07 08:29:16.000857