Display all dates & times in ISO 8601 format #9488

Closed
opened 2025-12-29 20:50:36 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Apr 16, 2024).

Originally assigned to: @jeremystretch on GitHub.

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

Originally created by @jeremystretch on GitHub (Apr 16, 2024). Originally assigned to: @jeremystretch on GitHub. ### 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](https://en.wikipedia.org/wiki/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
adam added the status: acceptedtype: feature labels 2025-12-29 20:50:36 +01:00
adam closed this issue 2025-12-29 20:50:36 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 17, 2024):

This was implemented in PR #15737.

@jeremystretch commented on GitHub (Apr 17, 2024): This was implemented in PR #15737.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9488