Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display all dates & times in ISO 8601 format #15735

Closed
jeremystretch opened this issue Apr 16, 2024 · 1 comment
Closed

Display all dates & times in ISO 8601 format #15735

jeremystretch opened this issue Apr 16, 2024 · 1 comment
Assignees
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Milestone

Comments

@jeremystretch
Copy link
Member

NetBox version

v4.0-beta1

Feature type

Change to existing functionality

Proposed functionality

Display all dates and times within the NetBox UI in ISO 8601 format (YYYY-MM-DD hh:mm:ss). This will be implemented by introducing three new template filters:

  • isodate()
  • isodatetime()
  • isotime()

The isodatetime() and isotime() filters should accept a granularity specification (e.g. "minutes" or "seconds") to be passed to Python's datetime.time() method for rendering.

Use case

This will provide a consistent display of date and time information for all users across the entire application, and the ISO 8601 format seems to be overwhelmingly preferred by users per the discussion in #15706.

Additionally, #15618 points out that the configurable date & time formats are largely useless now that Django 5.0 and later force localization of these values.

Database changes

None

External dependencies

None

@jeremystretch
Copy link
Member Author

This was implemented in PR #15737.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

1 participant