Skip to content

Why does Segment have an encoding error for Foundation.Date objects? #278

@goodones-mac

Description

@goodones-mac

Describe the bug
I'm trying to track an event with Foundation.Date objects inside of them, which are Codable and are seemingly getting translated into strings internally. This causes issues with your custom JSON encoder. What is going on?

Screenshots
Screenshot 2023-11-27 at 1 41 46 PM
Screenshot 2023-11-27 at 1 37 17 PM

Platform (please complete the following information):

  • Library Version in use: 1.4.8
  • Platform being tested: iOS
  • Integrations in use: None

Additional context
We are evaluating migrating from direct mixpanel tracking, thus the mixpanel types.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions