Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'datetime.date' object has no attribute 'utcoffset' #15838

Closed
nascimbe opened this issue Apr 24, 2024 · 2 comments
Closed

AttributeError: 'datetime.date' object has no attribute 'utcoffset' #15838

nascimbe opened this issue Apr 24, 2024 · 2 comments
Assignees
Labels
beta Concerns a bug/feature in a beta release severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@nascimbe
Copy link

Deployment Type

Self-hosted

NetBox Version

v4.0-beta2

Python Version

3.11

Steps to Reproduce

  1. Assign a date type custom-field to any object-type in NetBox v3.7.6 (found in IP address, Virtual Machines)
  2. Migrate to NetBox v4.0-beta2 using upgrade.sh
  3. Open any object instance with a date custom field assigned

Expected Behavior

The object page is shown correctly

Observed Behavior

Server Error

<class 'AttributeError'>

'datetime.date' object has no attribute 'utcoffset'

Python version: 3.11.5
NetBox version: 4.0-beta2
Plugins: None installed

Removing custom-fields of type date resolves the issue

@nascimbe nascimbe added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Apr 24, 2024
@nascimbe nascimbe changed the title AttributeError': datetime.date' object has no attribute 'utcoffset' AttributeError: 'datetime.date' object has no attribute 'utcoffset' Apr 24, 2024
@cs-1
Copy link

cs-1 commented Apr 25, 2024

Same problem for Racks. The error only appears if custom fields of type Date are present. Racks can be viewed as soon as all custom fields with Date are deleted. Date needs to actually be set to generate the error. Empty date fields don't trigger the error.

@opericgithub
Copy link

We have the same problem. Makes the v4.0 unusable since almost all our devices have custom field of type date.

@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation beta Concerns a bug/feature in a beta release severity: medium Results in substantial degraded or broken functionality for specfic workflows and removed status: needs triage This issue is awaiting triage by a maintainer labels Apr 26, 2024
@arthanson arthanson self-assigned this Apr 26, 2024
@arthanson arthanson removed the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Apr 26, 2024
@jeremystretch jeremystretch added the status: accepted This issue has been accepted for implementation label Apr 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

6 participants