我遇到了如何将datetime格式从 my转换db为html datetime-local. 这是我的数据库中的数据格式:
2020-07-18T17:25:00Z
Run Code Online (Sandbox Code Playgroud)
当我尝试将此数据传递给具有某种类型的 html 输入时,datetime-local它会向我发出如下警告:

这是我的 html 代码,其中包含格式化值:
<input type="datetime-local" required="" value="{{order.pick_up_datetime|date:'Y-m-dTh:i a'}}">
Run Code Online (Sandbox Code Playgroud)