Why `pbm *` is not using the server's timezone?

Hello.

It was a design decision to use UTC time. One key reason is to avoid encouraging user misunderstandings or mistakes when replica set nodes are in different timezones. This is a requirement for not just some but a lot of users.

Having said that though there is a logging function within the “mongodump” and “mongorestore” libraries that leaves the system logger with defaults, so those lines in the pbm-agent log are coming out with local time.

If we change anything it will be to replace the logger to get UTC everywhere.

1 Like