Export Collection not working properly for date fields

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Import/Export
    • None
    • None
    • None

      When I am exporting a collection from compass in JSON format the fileds are exported as shown below

       
          "last_scraped": {
              "$date": 

      {             "$numberLong": "1550466000000"         }

          }
       
      This is causing System.FormatException in c# driver whan I am trying to convert this to a BSON object using BsonDocument.Parse() method.
       
      But if I use mongoexport tool to export a collection the date fields are exported as shown below 
       
          "last_scraped": 

      {         "$date": "2019-02-16T05:00:00Z"     }

       
      The above is perfectly working fine with the BsonDocument.Parse() method.
       
      Please update the compass import/export functionality.
       
       

              Assignee:
              Unassigned
              Reporter:
              Manivannan Ponnusamy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: