aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-04-15 02:09:52 +0200
committerTeddy Wing2018-04-15 02:09:52 +0200
commit07b36febc2f402be9c5c1a9323ce90ba56b5488c (patch)
tree238232a5863481c2e3998dedd74060dbb2a3fc57 /src/main.rs
parent6149d7601cd3a63c6531846ea9d7fa9c584c35f7 (diff)
downloadmeetup-find-events-rss-07b36febc2f402be9c5c1a9323ce90ba56b5488c.tar.bz2
build_rss(write_feed): Automatically handle date formatting
* Take a date formatted in `%Y-%m-%d` and append the extra `THH:MM:SS` that the Meetup API requires. We'll just be taking a regular string from a user-inputted command line argument instead of a real date type because it's easier and simpler. * Use the name `end_date` to distinguish it from the `end_date_range` parameter used by the API.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 4c54e85..259767a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -63,7 +63,7 @@ fn run() -> Result<()> {
meetup_token,
"48".to_owned(),
"2".to_owned(),
- "2018-04-17T00:00:00".to_owned(),
+ "2018-04-17".to_owned(),
None,
None,
).chain_err(|| "could not write RSS feed.")?;