The documentation (
https://docs.djangoproject.com/en/5.0/ref/forms/fields/#timefield) says that "
the default input formats are
taken from the active locale format
TIME_INPUT_FORMATS
key, or from
TIME_INPUT_FORMATS
if localization is disabled". However, neither my reading of the code, or my actual experience shows settings.TIME_INPUT_FORMATS ever being used, even with "USE_I18N = False"
TimeField gets the formats from `input_formats = formats.get_format_lazy("TIME_INPUT_FORMATS")` which is a lazy version of `formats.get_format` -- the documentation of which says "If use_l10n is provided and is not None, it forces the value to be localized (or not), otherwise it's always localized."
so even with "USE_I18N = False" settings.TIME_INPUT_FORMATS seems to be ignored.
How does one use settings.TIME_INPUT_FORMATS ?
Arthur Pemberton