Skip to content

Display all dates & times in ISO 8601 format #15735

@jeremystretch

Description

@jeremystretch

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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions