Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9732

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

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

      > 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 Unassigned
            Reporter:
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: