[GODRIVER-567] Decoding date into time.Time does not work Created: 18/Sep/18  Updated: 28/Oct/23  Resolved: 27/Sep/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 0.0.13
Fix Version/s: 0.0.15

Type: Bug Priority: Major - P3
Reporter: Delio D'Anna Assignee: Kristofer Brandow (Inactive)
Resolution: Fixed Votes: 0
Labels: driver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There is a test in bson/bson_test.go called 
TestTimeRoundTrip on line 111, this test passes just because the time value is set to the default zero value, adding anything else will result in the error: "reflect.Set: value of type int64 is not assignable to type time.Time"
 



 Comments   
Comment by Delio D'Anna [ 28/Sep/18 ]

Hi, with the new bsoncodec is not an issue any more, but I've been asked to rebase my branch and transfer the tests to the new subpackage, so the PR is still valid, maybe this ticket can be closed or renamed?

Comment by Kristofer Brandow (Inactive) [ 27/Sep/18 ]

I tested this manually, and it worked for me. If there is still a problem, please comment on this ticket.

Thanks,

Kris

Comment by Delio D'Anna [ 19/Sep/18 ]

https://github.com/mongodb/mongo-go-driver/pull/94

Generated at Thu Feb 08 08:34:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.