elixirs / faker

Faker is a pure Elixir library for generating fake data.
MIT License
1.04k stars 214 forks source link

Faker.Date.date_of_birth() is failing on 29/2 #533

Closed MaccaCHAN closed 4 months ago

MaccaCHAN commented 4 months ago

** (MatchError) no match of right hand side value: {:error, :invalid_date} (faker 0.17.0) lib/faker/date.ex:21: Faker.Date.date_of_birth/1 iex:1: (file)

Seems this function is failing on 29/2. Got above error when calling Faker.Date.date_of_birth(). I have been using this for long time, all tests are fine until 29/2. 29/2 is the reason. Thanks.

boon-wego commented 4 months ago

Same here

willyjie23 commented 4 months ago

same here

igas commented 4 months ago

Please let me know if 0.18 fixed the issue

gaffney commented 4 months ago

@igas 0.18 fixes the issue, thank you.

MaccaCHAN commented 4 months ago

@igas issue fixed, thanks.