[SERVER-9732] Timestamp object is not displayed in a roundtrip-able way in the shell Created: 20/May/13  Updated: 10/Dec/14  Resolved: 23/Dec/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.4.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Antoine Girbal Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-6079 v8 and spidermonkey handle Timestamps... Closed
Operating System: ALL
Participants:

 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


 Comments   
Comment by Daniel Pasette (Inactive) [ 23/Dec/13 ]

SERVER-6079

Generated at Thu Feb 08 03:21:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.