aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-15 15:02:51 +0200
committerTeddy Wing2018-04-15 15:02:51 +0200
commit0e53abcc0588cc7675190440698ba39ee724691a (patch)
treeb71c2df299999c15ff9613afb480d6ad6fc799a6
parent2fce566e57cedaf6f089ce91d06af4ffbd40e07f (diff)
downloadmeetup-find-events-rss-0e53abcc0588cc7675190440698ba39ee724691a.tar.bz2
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.
-rw-r--r--src/build_rss.rs2
1 files changed, 1 insertions, 1 deletions
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
)?;