From a2e1edbe8bccb584f5d3441c06914242dfa2d981 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 31 Dec 2023 12:24:51 +0100 Subject: history_map: filter_until is inclusive --- lib/Travelynx/Controller/Traveling.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 7ff646d..dcfd36b 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -1332,7 +1332,11 @@ sub map_history { if ( $filter_until and $filter_until =~ m{ ^ (\d+) [.] (\d+) [.] (\d+) $ }x ) { - $filter_until = $parser->parse_datetime($filter_until); + $filter_until = $parser->parse_datetime($filter_until)->set( + hour => 23, + minute => 59, + second => 58 + ); } else { $filter_until = undef; -- cgit v1.2.3