Alex Stewart
Alex Stewart

Reputation: 748

How do i set django settings to 12 hour time

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.

Upvotes: 0

Views: 310

Answers (1)

dhui
dhui

Reputation: 522

You want %I.

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

Upvotes: 1

Related Questions