Closed jarretlavallee closed 5 months ago
nats stream info <stream> shows the first sequence and last sequence timestamps with UTC, however, they are displayed in the local timezone.
nats stream info <stream>
UTC
First Sequence: 1 @ 2024-03-28 07:22:07 UTC Last Sequence: 1,697,011 @ 2024-03-28 07:25:12 UTC
With --json, the time is correctly UTC.
--json
"first_ts": "2024-03-28T13:22:07.110043Z", "last_ts": "2024-03-28T13:25:12.970217Z",
The time for the first and last sequences should either be in UTC format or the UTC should be removed to indicate it is the local timezone.
nats-server 2.10.12 natcli 0.1.4
No response
On a system that is not configured with UTC as the timezone:
nats stream info <stream> --json
yeah should just drop the UTC now, all times are local
Fixed in https://github.com/nats-io/natscli/pull/1032
Observed behavior
nats stream info <stream>
shows the first sequence and last sequence timestamps withUTC
, however, they are displayed in the local timezone.With
--json
, the time is correctly UTC.Expected behavior
The time for the first and last sequences should either be in UTC format or the
UTC
should be removed to indicate it is the local timezone.Server and client version
nats-server 2.10.12 natcli 0.1.4
Host environment
No response
Steps to reproduce
On a system that is not configured with UTC as the timezone:
nats stream info <stream>
nats stream info <stream> --json