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

Fix unmarshaling an empty time struct when an interface is supplied to unmarshal function #333

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

aviadl
Copy link

@aviadl aviadl commented Feb 16, 2022

When a time.Time struct is supplied, the decode function goes in another path, and the UTC timezone is set on the empty time object
Added this now to the path when an interface is supplied
fixes #332

…o unmarshal command

When a time.Time struct is supplied, the decode function goes in another path, and the UTC timezone is set on the empty time object
Added this now to the path when an interface is supplied
@vmihailenco vmihailenco merged commit 8a4375f into vmihailenco:v5 Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unmarshal an empty time object provides a problematic timezone
2 participants