Skip to content

Commit 7ee12fd

Browse files
committed
Set a default DATE_FORMAT
We already set DATETIME_FORMAT, but it makes sense to also set DATE_FORMAT. In all our frontend templates we were already using an explicit format, but this will help the /admin/ side.
1 parent 59793b0 commit 7ee12fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pgweb/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@
114114
'pgweb.featurematrix',
115115
'pgweb.search',
116116
'pgweb.pugs',
117+
'pgweb.util',
117118
]
118119

119120
# Default format for date/time (as it changes between machines)
120121
DATETIME_FORMAT = "Y-m-d H:i:s"
122+
DATE_FORMAT = "Y-m-d"
121123

122124
# Configure recaptcha. Most details contain keys and are thus handled
123125
# in settings_local.py. Override NOCAPTCHA to actually use them.

0 commit comments

Comments
 (0)