mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-22 15:44:46 +00:00
It is possible to set default format for date/datetime inputs. This works together
with standard django localization.
# django settings
USE_I18N = True
LANGUAGE_CODE = 'sl'
# wagtail settings
WAGTAIL_DATE_FORMAT = '%d.%m.%Y.'
WAGTAIL_DATETIME_FORMAT = '%d.%m.%Y. %H:%M'
DateBlock, DateTimeBlock accepts additional keyword argument `format`.
|
||
|---|---|---|
| .. | ||
| api | ||
| customisation | ||
| i18n | ||
| images | ||
| deploying.rst | ||
| index.rst | ||
| jinja2.rst | ||
| performance.rst | ||
| privacy.rst | ||
| settings.rst | ||
| testing.rst | ||
| third_party_tutorials.rst | ||