LocalDate Parsing or How Being Strict Can Save Your Day

tl;dr: Careful with validation via LocalDate parsing The original bug We had a bug reported on our Android app this week about invalid dates coming into the backend during a particular UI flow. The problematic section was a page where users could enter the date of an event, then we call the backend API with the date they entered. The issue they were seeing is that the date we were sending wasn’t valid for some odd reason....

2022-07-07 · 4 min · Michael Fazio