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 /pkg/api | |
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 'pkg/api')
-rw-r--r-- | pkg/api/handlers/compat/containers_logs.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/containers_logs.go b/pkg/api/handlers/compat/containers_logs.go index 656e2c627..50cdb1e65 100644 --- a/pkg/api/handlers/compat/containers_logs.go +++ b/pkg/api/handlers/compat/containers_logs.go @@ -63,7 +63,7 @@ func LogsFromContainer(w http.ResponseWriter, r *http.Request) { var since time.Time if _, found := r.URL.Query()["since"]; found { - since, err = util.ParseInputTime(query.Since) + since, err = util.ParseInputTime(query.Since, true) if err != nil { utils.BadRequest(w, "since", query.Since, err) return @@ -73,7 +73,7 @@ func LogsFromContainer(w http.ResponseWriter, r *http.Request) { var until time.Time if _, found := r.URL.Query()["until"]; found { if query.Until != "0" { - until, err = util.ParseInputTime(query.Until) + until, err = util.ParseInputTime(query.Until, false) if err != nil { utils.BadRequest(w, "until", query.Until, err) return |