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

ua: decode types that convert to time.Time #634

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

magiconair
Copy link
Member

The codec does not handle types that can be converted to time.Time correctly since it is too strict in determining what a time.Time type is. This patch relaxes this by checking if a type can be converted to time.Time.

Fixes #633

The codec does not handle types that can be converted to time.Time
correctly since it is too strict in determining what a time.Time type
is. This patch relaxes this by checking if a type can be converted to
time.Time.

Fixes #633
@magiconair magiconair added this to the v0.3.11 milestone Feb 1, 2023
@magiconair
Copy link
Member Author

Note that I tested this on our codebase. Will merge since it is blocking.

@magiconair magiconair merged commit 0d19055 into main Feb 1, 2023
@magiconair magiconair deleted the issue-633-time-type-alias branch February 1, 2023 15:31
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.

Decoder fails to decode type which converts to time.Time
1 participant