Time in Change Log without timezone #9676

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

Originally created by @fixed77 on GitHub (May 15, 2024).

Originally assigned to: @Julio-Oliveira-Encora on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.2

Python Version

3.10

Steps to Reproduce

  1. Set TIME_ZONE in configuration.py
  2. Make changes
  3. Go to Changelog

Expected Behavior

Time in Changlelog table and events in localtime

Observed Behavior

Time in Changlelog table and events in UTC

Originally created by @fixed77 on GitHub (May 15, 2024). Originally assigned to: @Julio-Oliveira-Encora on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.2 ### Python Version 3.10 ### Steps to Reproduce 1. Set TIME_ZONE in configuration.py 2. Make changes 3. Go to Changelog ### Expected Behavior Time in Changlelog table and events in localtime ### Observed Behavior Time in Changlelog table and events in UTC
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:20:44 +01:00
adam closed this issue 2025-12-29 21:20:44 +01:00
Author
Owner

@samk-acw commented on GitHub (May 27, 2024):

This seems to be a regression due to https://github.com/netbox-community/netbox/pull/15737, or a djanjo 5 side effect.

A potential fix is loading the TIME_ZONE preference and doing .astimezone() before any .isoformat() call. This appeared to work when testing for myself but not sure about any other implications

@samk-acw commented on GitHub (May 27, 2024): This seems to be a regression due to https://github.com/netbox-community/netbox/pull/15737, or a djanjo 5 side effect. A potential fix is loading the TIME_ZONE preference and doing .astimezone() before any .isoformat() call. This appeared to work when testing for myself but not sure about any other implications
Author
Owner

@Julio-Oliveira-Encora commented on GitHub (May 27, 2024):

Could you please assign it to me?

@Julio-Oliveira-Encora commented on GitHub (May 27, 2024): Could you please assign it to me?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9676