[SERVER-21807] Use consistent timezones while reporting time in shell helpers Created: 09/Dec/15  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Replication, Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Dinesh Chander Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Participants:

 Description   

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")



 Comments   
Comment by Ramon Fernandez Marina [ 09/Dec/15 ]

Thanks for your report dinesh.chander. This improvement has been scheduled for the next development cycle.

Regards,
Ramón.

Generated at Thu Feb 08 03:58:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.