I just upgraded to django 5.0, and the DATETIME_INPUT_FORMATS is no longer working in the settings.py file. It is not accepting DOY (%j) dates like it did before. I have looked at similar questions on stackoverflow, and I see that USE_L10N is deprecated and USE_L18N should be disabled. Even with these updates, it seems to be ignoring the DATETIME_INPUT_FORMATS.
Ideas?
”’
LANGUAGE_CODE = ‘en-us’
TIME_ZONE = ‘UTC’
DATETIME_FORMAT = ‘Y-z H:i:s’
USE_I18N = False
USE_TZ = False
DATETIME_INPUT_FORMATS = [
‘%Y-%m-%d %H:%M:%S.%f’,
‘%Y-%m-%d %H:%M:%S’,
‘%Y-%m-%d %H:%M’,
‘%Y-%m-%dT%H:%M:%S.%f’,
‘%Y-%m-%dT%H:%M:%S’,
‘%Y-%m-%dT%H:%M’,
‘%Y-%m-%d’,
‘%Y-%j %H:%M:%S.%f’,
‘%Y-%j %H:%M:%S’,
‘%Y-%j %H:%M’,
‘%Y-%jT%H:%M:%S.%f’,
‘%Y-%jT%H:%M:%S’,
‘%Y-%jT%H:%M’,
]
”’