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

Try to print Date objects in copy-pastable form in the browser REPL

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • None
    • 3

      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:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: