Open didix16 opened 3 years ago
Hi, like title says, I'm using the method dateTimeThisYear() to generate a date from current year but, sometimes is generating a date from previous year!
fzaninotto/faker
for($i = 0; $i < 100; $i++) { $y = $faker->dateTimeThisYear()->format("Y"); if ($y != "2020") { throw new \Exception("FAKER ERROR. Generated year: ". $y); } }
It should not generate an Exception.
FAKER ERROR. Generated year: 2019
Summary
Hi, like title says, I'm using the method dateTimeThisYear() to generate a date from current year but, sometimes is generating a date from previous year!
Versions
fzaninotto/faker
Self-enclosed code snippet for reproduction
Expected output
Actual output