Issues with Time unmarshalling

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.2.1
    • Component/s: BSON, JSON & ExtJSON
    • None
    • Environment:
      windows/amd64
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Unassigned
              Reporter:
              Abhay Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: