Skip to content

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

Closed
@nascimbe

Description

@nascimbe

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

Metadata

Metadata

Assignees

Labels

betaConcerns a bug/feature in a beta releaseseverity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions