我使用Rails的呈现方法将呈现的json传递给AngularJS前端。日期顺利地过去了。当我在后端尝试puts时,呈现的json对象也有正确的时间。但由于某种原因,所有的时间都是00:00:00在前面。. // a lot of other stuff
format.json do end
end(除了“日期”,该时间应该是00:00:00
49:46.778Z" "pageSize": 0,} 我的问题是,我正在努力将Python语言中的datetime抽象转换成JSON语言中的这种奇怪的格式。+json", #copied from swagger
"Accept": "text/plain" #copied from swagger, everything wo