Date/Timeset formatting is not working #7398

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

Originally created by @mmfreitas on GitHub (Dec 20, 2022).

NetBox version

v3.4.1

Python version

3.9

Steps to Reproduce

  1. Change date formatting in configuration.py to the following:

DATE_FORMAT = 'j N, Y'
SHORT_DATE_FORMAT = 'd-m-Y'
TIME_FORMAT = 'H:i:s'
SHORT_TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = 'j N, Y G:i:s'
SHORT_DATETIME_FORMAT = 'd-m-Y H:i'

  1. Restart netbox, and verify that dates don't change at all. This was working on 3.3.9.

Expected Behavior

Dates and timeset should be formatted as indicated in configuration.py.

Observed Behavior

Dates don't change.

Originally created by @mmfreitas on GitHub (Dec 20, 2022). ### NetBox version v3.4.1 ### Python version 3.9 ### Steps to Reproduce 1. Change date formatting in configuration.py to the following: DATE_FORMAT = 'j N, Y' SHORT_DATE_FORMAT = 'd-m-Y' TIME_FORMAT = 'H:i:s' SHORT_TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'j N, Y G:i:s' SHORT_DATETIME_FORMAT = 'd-m-Y H:i' 2. Restart netbox, and verify that dates don't change at all. This was working on 3.3.9. ### Expected Behavior Dates and timeset should be formatted as indicated in configuration.py. ### Observed Behavior Dates don't change.
adam added the type: bug label 2025-12-29 20:22:56 +01:00
adam closed this issue 2025-12-29 20:22:56 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 29, 2022):

This has been resolved for now by disabling localization (see #11271).

@jeremystretch commented on GitHub (Dec 29, 2022): This has been resolved for now by disabling localization (see #11271).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7398