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

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

Closed
goodones-mac opened this issue Nov 27, 2023 · 1 comment
Closed
Assignees
Labels

Comments

@goodones-mac
Copy link

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.

@bsneed
Copy link
Contributor

bsneed commented Nov 27, 2023

Have a look at the main branch. This might have been addressed already via #273. If that doesn't take care of it, please reopen this ticket. A release will be made shortly containing this fix.

@bsneed bsneed closed this as completed Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants