diff options
author | cdoern <cdoern@redhat.com> | 2021-08-09 10:07:46 -0400 |
---|---|---|
committer | cdoern <cdoern@redhat.com> | 2021-08-23 12:51:56 -0400 |
commit | d06d285e66251784126b4f19e047c2a93182d08e (patch) | |
tree | 1a1078cc0bca1f2c9fb864dd268c4644e381b8a7 /cmd/podman | |
parent | 04ab2b16617fe2d3178eb0b461aacbcab609611e (diff) | |
download | podman-d06d285e66251784126b4f19e047c2a93182d08e.tar.gz podman-d06d285e66251784126b4f19e047c2a93182d08e.tar.bz2 podman-d06d285e66251784126b4f19e047c2a93182d08e.zip |
logFile until flag issue
we were adding a negative duration in podman events, causing inputs like
-5s to be correct and 5s to be incorrect.
fixes #11158
Signed-off-by: cdoern <cdoern@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/containers/logs.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/containers/logs.go b/cmd/podman/containers/logs.go index 00a8d4b52..1548c6c24 100644 --- a/cmd/podman/containers/logs.go +++ b/cmd/podman/containers/logs.go @@ -120,7 +120,7 @@ func logsFlags(cmd *cobra.Command) { func logs(_ *cobra.Command, args []string) error { if logsOptions.SinceRaw != "" { // parse time, error out if something is wrong - since, err := util.ParseInputTime(logsOptions.SinceRaw) + since, err := util.ParseInputTime(logsOptions.SinceRaw, true) if err != nil { return errors.Wrapf(err, "error parsing --since %q", logsOptions.SinceRaw) } @@ -128,7 +128,7 @@ func logs(_ *cobra.Command, args []string) error { } if logsOptions.UntilRaw != "" { // parse time, error out if something is wrong - until, err := util.ParseInputTime(logsOptions.UntilRaw) + until, err := util.ParseInputTime(logsOptions.UntilRaw, false) if err != nil { return errors.Wrapf(err, "error parsing --until %q", logsOptions.UntilRaw) } |