[PR #11143] [MERGED] 11077 use formatting for custom field date #13745

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11143
Author: @arthanson
Created: 12/9/2022
Status: Merged
Merged: 12/13/2022
Merged by: @jeremystretch

Base: developHead: 11077-date-custom-fields


📝 Commits (2)

  • 865ac96 11077 use formatting for custom field date
  • 2cd6909 Apply configured date format to column render() method

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 netbox/netbox/tables/columns.py (+7 -0)

📄 Description

Fixes: #11077

Updates custom field display in tables to use SHORT_DATE_FORMAT specifier, also updates the override for DateColumn to also use SHORT_DATE_FORMAT. Is assuming Custom field date will always be in the Y-m-d format, would need an extra date-format specifier if in another format.


🔄 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/11143 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 12/9/2022 **Status:** ✅ Merged **Merged:** 12/13/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `11077-date-custom-fields` --- ### 📝 Commits (2) - [`865ac96`](https://github.com/netbox-community/netbox/commit/865ac9620d195bac5c2da3cf18466273d6ef4686) 11077 use formatting for custom field date - [`2cd6909`](https://github.com/netbox-community/netbox/commit/2cd690903976725da2dc696522a89024f85260ea) Apply configured date format to column render() method ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/tables/columns.py` (+7 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #11077 <!-- Please include a summary of the proposed changes below. --> Updates custom field display in tables to use SHORT_DATE_FORMAT specifier, also updates the override for DateColumn to also use SHORT_DATE_FORMAT. Is assuming Custom field date will always be in the Y-m-d format, would need an extra date-format specifier if in another format. --- <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:20:33 +01:00
adam closed this issue 2025-12-29 23:20:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13745