[GODRIVER-1597] Issues with Time unmarshalling Created: 29/Apr/20  Updated: 30/Apr/20  Resolved: 30/Apr/20

Status: Closed
Project: Go Driver
Component/s: BSON, JSON & ExtJSON
Affects Version/s: 1.2.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Abhay Kumar Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows/amd64


Issue Links:
Duplicate
duplicates GODRIVER-1596 Issues with Time unmarshalling Closed

 Description   

I'm fetching the Date stored in MongoDB. The value stored in DB is
reservedDate: 2020-02-19T07:11:23.890+00:00

After Unmarshalling the response into time.Time field the value becomes
"reservedDate": "2020-02-19T07:11:23.89Z"

890 MilliSecond become 89, similarlly 100 becomes 1. The trailing Zeros are getting truncated.



 Comments   
Comment by Abhay Kumar [ 30/Apr/20 ]

Please close this. It's the same. I got an error while creating the last one so I created this one

Comment by Divjot Arora (Inactive) [ 29/Apr/20 ]

abhay.kumar1@pb.com This looks like the same ticket as GODRIVER-1596. Are these tickets intentionally separate or can we close one of them?

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