From 4108cf1925f717188d885b63d36818cca20e7a44 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 29 Oct 2025 15:54:32 +0000 Subject: [PATCH] time: Update the time when parsing relative timestamps Signed-off-by: Michael Tremer --- src/daemon/time.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/daemon/time.c b/src/daemon/time.c index aa82d5a..e88f86e 100644 --- a/src/daemon/time.c +++ b/src/daemon/time.c @@ -132,7 +132,9 @@ static int time_parse_relative(time_t* t, const char* arg, time_t now) { } // Now let's do the maths - return now + (direction * num * multiplier); + *t = now + (direction * num * multiplier); + + return 0; } /* -- 2.47.3