Skip to content
Snippets Groups Projects
Commit ceda710b authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Make the date and time displays default to ISO

parent 0c49ef49
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,6 @@ class DatePickerInput(forms.DateInput):
'data-date-format': 'yyyy-mm-dd',
})
kwargs['attrs'] = attrs
kwargs['format'] = '%Y-%m-%d'
super().__init__(*args, **kwargs)
......
......@@ -172,10 +172,17 @@ TIME_ZONE = 'Europe/London'
USE_I18N = True
USE_L10N = True
USE_L10N = False
USE_TZ = True
DATE_FORMAT = 'Y-m-d'
DATETIME_FORMAT = 'Y-m-d\TH:i:s'
SHORT_DATE_FORMAT = 'Y-m-d'
SHORT_DATETIME_FORMAT = 'Y-m-d\TH:i:s'
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/stable/howto/static-files/
......
<input type="date" placeholder="dd/mm/yyyy" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
<input type="date" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment