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

Compass should parse ISODate correctly

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • 2

    Description

      Currently compass treats IsoDate as Date.

      IsoDate should work like the shell and always construct dates disregarding the time zone.

      Compass IsoDate parsing: https://github.com/mongodb-js/ejson-shell-parser/blob/master/src/scope.ts#L73

      Shell IsoDate:

      https://github.com/mongodb-js/mongosh/blob/59beaa84b21bd5fb04124f08fb270236c3ab22d7/packages/shell-api/src/shell-bson.ts#L118

      Attachments

        Activity

          People

            Unassigned Unassigned
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: