[PR #15737] [MERGED] Closes #15618: Always use ISO 8601 date & time formatting #14658

Closed
opened 2025-12-29 23:25:47 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15737
Author: @jeremystretch
Created: 4/16/2024
Status: Merged
Merged: 4/17/2024
Merged by: @jeremystretch

Base: featureHead: 15618-iso-datetimes


📝 Commits (5)

  • 510f132 Introduce the isodate(), isotime(), and isodatetime() template filters
  • c580a53 Display the relative time on mouse hover
  • e104fab Render journal entry times in ISO 8601 format
  • cdbb700 Use ISO 8601 format when displaying dates & times in a table
  • 2dea0ac Standardize the use of DateTimeColumn across all tables

📊 Changes

24 files changed (+109 additions, -67 deletions)

View changed files

📝 netbox/account/tables.py (+4 -2)
📝 netbox/core/tables/tasks.py (+5 -5)
📝 netbox/extras/models/models.py (+1 -1)
📝 netbox/extras/tables/tables.py (+6 -6)
📝 netbox/netbox/tables/columns.py (+20 -14)
📝 netbox/templates/account/profile.html (+2 -2)
📝 netbox/templates/account/token.html (+3 -3)
📝 netbox/templates/circuits/circuit.html (+2 -2)
📝 netbox/templates/core/configrevision.html (+1 -1)
📝 netbox/templates/core/configrevision_restore.html (+1 -1)
📝 netbox/templates/core/job.html (+4 -4)
📝 netbox/templates/core/rq_task.html (+3 -3)
📝 netbox/templates/core/rq_worker.html (+2 -2)
📝 netbox/templates/extras/htmx/script_result.html (+3 -4)
📝 netbox/templates/extras/journalentry.html (+1 -1)
📝 netbox/templates/extras/objectchange.html (+1 -3)
📝 netbox/templates/extras/script_list.html (+1 -1)
📝 netbox/templates/extras/script_result.html (+1 -1)
📝 netbox/templates/generic/object.html (+2 -2)
📝 netbox/templates/ipam/aggregate.html (+1 -1)

...and 4 more files

📄 Description

Closes: #15618

  • Introduce the isodate(), isotime(), and isodatetime() template filters to render timestamps in ISO 8601 format consistently
  • Replace all calls to annotated_date() with isodate() or isodatetime() as appropriate

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/15737 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/16/2024 **Status:** ✅ Merged **Merged:** 4/17/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `15618-iso-datetimes` --- ### 📝 Commits (5) - [`510f132`](https://github.com/netbox-community/netbox/commit/510f1326e6b5f7857f348502590304eb749091c9) Introduce the isodate(), isotime(), and isodatetime() template filters - [`c580a53`](https://github.com/netbox-community/netbox/commit/c580a5399f10b16d1f18d64e627c22626806ff42) Display the relative time on mouse hover - [`e104fab`](https://github.com/netbox-community/netbox/commit/e104fab50b00f6ae9c5b950251961fcdb3e2f288) Render journal entry times in ISO 8601 format - [`cdbb700`](https://github.com/netbox-community/netbox/commit/cdbb700c8ff3a2aa5950f0ca8a59cfe1a7932203) Use ISO 8601 format when displaying dates & times in a table - [`2dea0ac`](https://github.com/netbox-community/netbox/commit/2dea0ac1d338d97130073c43660d0ac77aaae20c) Standardize the use of DateTimeColumn across all tables ### 📊 Changes **24 files changed** (+109 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `netbox/account/tables.py` (+4 -2) 📝 `netbox/core/tables/tasks.py` (+5 -5) 📝 `netbox/extras/models/models.py` (+1 -1) 📝 `netbox/extras/tables/tables.py` (+6 -6) 📝 `netbox/netbox/tables/columns.py` (+20 -14) 📝 `netbox/templates/account/profile.html` (+2 -2) 📝 `netbox/templates/account/token.html` (+3 -3) 📝 `netbox/templates/circuits/circuit.html` (+2 -2) 📝 `netbox/templates/core/configrevision.html` (+1 -1) 📝 `netbox/templates/core/configrevision_restore.html` (+1 -1) 📝 `netbox/templates/core/job.html` (+4 -4) 📝 `netbox/templates/core/rq_task.html` (+3 -3) 📝 `netbox/templates/core/rq_worker.html` (+2 -2) 📝 `netbox/templates/extras/htmx/script_result.html` (+3 -4) 📝 `netbox/templates/extras/journalentry.html` (+1 -1) 📝 `netbox/templates/extras/objectchange.html` (+1 -3) 📝 `netbox/templates/extras/script_list.html` (+1 -1) 📝 `netbox/templates/extras/script_result.html` (+1 -1) 📝 `netbox/templates/generic/object.html` (+2 -2) 📝 `netbox/templates/ipam/aggregate.html` (+1 -1) _...and 4 more files_ </details> ### 📄 Description ### Closes: #15618 - Introduce the `isodate()`, `isotime()`, and `isodatetime()` template filters to render timestamps in ISO 8601 format consistently - Replace all calls to `annotated_date()` with `isodate()` or `isodatetime()` as appropriate --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:25:47 +01:00
adam closed this issue 2025-12-29 23:25:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14658