Display script results timestamp in correct timezone #9781

Closed
opened 2025-12-29 21:22:33 +01:00 by adam · 2 comments
Owner

Originally created by @llamafilm on GitHub (Jun 3, 2024).

Originally assigned to: @llamafilm on GitHub.

NetBox version

v4.0.3

Feature type

Change to existing functionality

Proposed functionality

Currently the scripts results page (/extras/scripts/results/12345/) displays raw timestamps with no formatting. I'd like to display them in the configured TIME_ZONE and format without microseconds.

Use case

I use the log output in custom scripts quite a bit, to display important information to the user when running in a browser. I like the new feature in v4 to display timestamps on this page, but it occupies too much screen real estate.

Current:
Image

Proposed change:
Image

Originally created by @llamafilm on GitHub (Jun 3, 2024). Originally assigned to: @llamafilm on GitHub. ### NetBox version v4.0.3 ### Feature type Change to existing functionality ### Proposed functionality Currently the scripts results page (`/extras/scripts/results/12345/`) displays raw timestamps with no formatting. I'd like to display them in the configured TIME_ZONE and format without microseconds. ### Use case I use the log output in custom scripts quite a bit, to display important information to the user when running in a browser. I like the new feature in v4 to display timestamps on this page, but it occupies too much screen real estate. Current: <img width="520" height="169" alt="Image" src="https://github.com/user-attachments/assets/56bbeaba-2cbf-4cf0-8263-63e947b98bc8" /> Proposed change: <img width="411" height="162" alt="Image" src="https://github.com/user-attachments/assets/92ce2c02-087b-404f-9bfd-16ab46ee32dd" />
adam added the status: acceptedtype: featurenetboxcomplexity: low labels 2025-12-29 21:22:33 +01:00
adam closed this issue 2025-12-29 21:22:34 +01:00
Author
Owner

@llamafilm commented on GitHub (Sep 10, 2025):

I've edited the original request because no need for a new preference, we should just respect the TIME_ZONE setting already defined.

I volunteer to do this work

@llamafilm commented on GitHub (Sep 10, 2025): I've edited the original request because no need for a new preference, we should just respect the TIME_ZONE setting already defined. I volunteer to do this work
Author
Owner

@jnovinger commented on GitHub (Sep 10, 2025):

Thanks for volunteering, @llamafilm . I'll assign this one to you.

In the future, please make sure to verify that issues with the status: backlog label are available for work. Issues with that label are "[a]waiting selection for work" for one reason or another.

@jnovinger commented on GitHub (Sep 10, 2025): Thanks for volunteering, @llamafilm . I'll assign this one to you. In the future, please make sure to verify that issues with the [`status: backlog`](https://github.com/netbox-community/netbox/issues?q=sort%3Aupdated-desc+state%3Aopen+label%3A%22status%3A+backlog%22) label are available for work. Issues with that label are "[a]waiting selection for work" for one reason or another.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9781