Timestamp object is not displayed in a roundtrip-able way in the shell

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.4.1
    • Component/s: Shell
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.tx.save(

      {a: new Timestamp()}

      )
      > db.tx.find()
      { "_id" : ObjectId("519a9e5b0321830334ee4ca3"), "a" :

      { "t" : 1369087579, "i" : 1 }

      }

      Instead the output should be either:

      • { "$ts" : 1369087579 , "$inc" : 1}
      • Timestamp(1369087579, 1)
      • whatever mongoexport uses

              Assignee:
              Unassigned
              Reporter:
              Antoine Girbal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: