zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
114 stars 86 forks source link

`zowe zos-logs list logs` command assumes time is now from Client #2336

Open awharn opened 11 hours ago

awharn commented 11 hours ago

Describe the bug

The command assumes the date and time from the client perspective. This can cause logs to be omitted, or the command to fail, if the server time differs from the client time (usually off by a few seconds to a minute). The API uses the server time for now if no time is passed. By default, we should not be passing the client time to the server, but let the server use its current time to get the most up to date logs (and prevent errors).

Expected and actual results

Describe your environment

Additional context

github-actions[bot] commented 11 hours ago

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.