Skip to content

Commit

Permalink
Add relevant date
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Oct 19, 2023
1 parent 6ad1000 commit 253601b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ pub async fn passes_handler(Query(data): Query<PassModel>) -> Result<impl IntoRe
"iso-8859-1",
));

// Set relevant date
let date = format!("{}T{}:00+02:00", data.date, data.time);
pass.relevant_date(date.as_str());

let mut event_ticket = Details::new();

let mut field = Field::new_string("event", data.title.as_str());
Expand Down

0 comments on commit 253601b

Please sign in to comment.