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

Compass should parse ISODate correctly

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.43.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 3
    • Not Needed
    • Iteration Fortitudo, Iteration Gamma Rays

      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

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

              Created:
              Updated:
              Resolved: