[GODRIVER-848] bson can not marshal datetime ISODate json correct Created: 25/Feb/19 Updated: 28/Oct/23 Resolved: 07/Mar/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON, Core API, CRUD |
| Affects Version/s: | 1.0.0-rc1, 0.3.0 |
| Fix Version/s: | 1.0.0-rc2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Lee Nanxi | Assignee: | Go Community User |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Bug, driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
all |
||
| Description |
|
fix datetime marshal json format. refer to rfc3339 in golang 's json, the "time" format should be as same at rfc3339
before: ``` { "created_at" : 1551093564256, }``` ``` { "after" : "2019-02-25T11:19:24.256Z", }``` more: https://github.com/mongodb/mongo-go-driver/pull/131 |
| Comments |
| Comment by Lee Nanxi [ 25/Feb/19 ] |
|
@skriptble code: https://github.com/mongodb/mongo-go-driver/pull/131/files |