Move away from supporting/recommending (SHORT_)?DATE(TIME?)_FORMAT #7018
Labels
triage
This issue is new and has not been reviewed.
type: feature
Introduction of substantial new functionality to the application
As ...
Cora - Coder
I want ...
I want to move away from supporting/recommending the use of
(SHORT_)?DATE(TIME?)_FORMAT
in Nautobot. This involves deprecating or removing the use of(SHORT_)?DATE(TIME?)_FORMAT
in favor of more flexible and locale-based date and time formatting options. Specifically, we should prioritize locale-driven formatting whenUSE_L10N
is set to True and encourage developers to rely on these standardized formats rather than hardcoding(SHORT_)?DATE(TIME?)_FORMAT
.So that ...
By removing reliance on
(SHORT_)?DATE(TIME?)_FORMAT
, we promote greater localization and ensure that the application behaves according to the user's regional preferences for date and time formats. This will reduce the need for custom formatting logic and provide a more user-friendly experience for users across different regions.Additionally
USE_L10N
is on by default in Django 4 and going to be always-on when we move to Django 5 (https://docs.djangoproject.com/en/5.1/releases/5.0/#features-removed-in-5-0)I know this is done when...
(SHORT_)?DATE(TIME?)_FORMAT
references in our code and our docs and instead document how to set the locale appropriately to get the desired behavior.USE_L10N
).Optional - Feature groups this request pertains to.
Database Changes
No response
External Dependencies
No response
The text was updated successfully, but these errors were encountered: