diff options
author | Teddy Wing | 2018-04-15 15:02:51 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-15 15:02:51 +0200 |
commit | 0e53abcc0588cc7675190440698ba39ee724691a (patch) | |
tree | b71c2df299999c15ff9613afb480d6ad6fc799a6 | |
parent | 2fce566e57cedaf6f089ce91d06af4ffbd40e07f (diff) | |
download | meetup-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.rs | 2 |
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 )?; |