Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3880

Export Collection not working properly for date fields

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Import/Export
    • Labels:
      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 Unassigned
            Reporter:
            pmanivannan89@gmail.com Manivannan Ponnusamy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: