I am trying to modify settings.py to change the display to 12 hour time using TIME_INPUT_FORMATS
however it displays it incorrectly when i apply %P
.
问问题
258 次
1 回答
1
You want %I
.
Check out the Django settings docs which reference the Python datetime docs
于 2013-07-30T08:37:39.073 回答