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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.4.1
    • Shell
    • None
    • ALL

    Description

      > 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: