0

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.

Docs on it are here.

4

1 回答 1

1

You want %I.

Check out the Django settings docs which reference the Python datetime docs

于 2013-07-30T08:37:39.073 回答