Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-723

Try to print Date objects in copy-pastable form

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.13.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Not Needed
    • Iteration Barcelona

      If we can, print Date objects in a way that can be copied back into the shell, like we do for BSON objects. This might be tricky because Node.js's util.inspect() ignores a custom inspection function for built-in objects like Dates or RegExps. inspect doesn’t work, but util.inspect.custom does. Yay for that.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: