Skip to content

Fix resource.CopyObject for *time.Time elements.#747

Merged
IfSentient merged 1 commit intomainfrom
fix-copy-time-pointer
Apr 16, 2025
Merged

Fix resource.CopyObject for *time.Time elements.#747
IfSentient merged 1 commit intomainfrom
fix-copy-time-pointer

Conversation

@IfSentient
Copy link
Copy Markdown
Contributor

Previous PR to fix resource.CopyObject and resource.CopyObjectInto for time.Time elements (#744) had a small bug with *time.Time types, and the addition to the test only tested time.Time. Added a *time.Time element to the test, and fixed the bug where it improperly checked if the pointer is of type time.Time, rather than the dereferenced pointer.

@IfSentient IfSentient requested a review from a team as a code owner April 15, 2025 20:14
@IfSentient IfSentient requested a review from onprem April 15, 2025 20:14
@IfSentient IfSentient merged commit e269ae1 into main Apr 16, 2025
10 checks passed
@IfSentient IfSentient deleted the fix-copy-time-pointer branch April 16, 2025 12:32
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.

3 participants