From 0e53abcc0588cc7675190440698ba39ee724691a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 15 Apr 2018 15:02:51 +0200 Subject: build_rss(write_feed): Set time to a second before midnight Previously we used midnight, but this meant that the entire day specified by `end_date` would be excluded, which is counterintuitive. Instead use a second before midnight to include the rest of that day. --- src/build_rss.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build_rss.rs b/src/build_rss.rs index d19b046..2289c87 100644 --- a/src/build_rss.rs +++ b/src/build_rss.rs @@ -17,7 +17,7 @@ pub fn write_feed( let events = client.find_upcoming_events( latitude, longitude, - format!("{}T00:00:00", end_date), + format!("{}T23:59:59", end_date), radius, page )?; -- cgit v1.2.3