From 07b36febc2f402be9c5c1a9323ce90ba56b5488c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 15 Apr 2018 02:09:52 +0200 Subject: 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. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') 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.")?; -- cgit v1.2.3