1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Standardized date/time displays; moved format declarations to configuration.py

This commit is contained in:
Jeremy Stretch
2016-06-22 13:22:59 -04:00
parent 5f0d52e59a
commit 8563e2aca3
8 changed files with 39 additions and 16 deletions

View File

@ -64,3 +64,12 @@ PAGINATE_COUNT = 50
# Time zone (default: UTC)
TIME_ZONE = 'UTC'
# Date/time formatting. See the following link for supported formats:
# https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'N j, Y'
SHORT_DATE_FORMAT = 'Y-m-d'
TIME_FORMAT = 'g:i a'
SHORT_TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = 'N j, Y g:i a'
SHORT_DATETIME_FORMAT = 'Y-m-d H:i'