Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21807

Use consistent timezones while reporting time in shell helpers

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication, Shell
    • None
    • Replication

      Different replication shell helpers report times in different timezones. It would give a good user experience if consistent format/timezone is reported everywhere.

      e.g. rs.status() and db.getReplicationInfo() both use different timezones.

      db.getReplicationInfo() 
      "tLast" : "Wed Dec 09 2015 15:45:53 GMT-0800 (PST)",
      "now" : "Wed Dec 09 2015 15:45:55 GMT-0800 (PST)"
      
      rs.status() 
      "optime" : Timestamp(1449272735, 3),
      "optimeDate" : ISODate("2015-12-09T23:45:35Z"),
      "lastHeartbeat" : ISODate("2015-12-09T23:45:35.810Z")
      

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            dinesh.chander@mongodb.com Dinesh Chander
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: