6
Awlex
4y

Day 2 of fetching data from external sources: someone entered an entry on 2006.41.12 (YYYY.MM.DD). People will do everything to fuck with API users

Comments
  • 2
    You don't validate the input?
  • 0
    @C0D4 Don't worry, the standard lib of the programming language I use threw an error me :)
  • 3
    Date handling, one if the few infinite sources of new kind of bugs ;)

    I also had a form that required a date.

    After trying to validate or convert a number of different formats the user wrote, yes user as in singular, she just could not write the date the same format twice, I finally gave up and replaced the date field with a date picker with no input field.

    That actually solved the problem.
Add Comment