From bb0f7edc89cef328b8298791956dc7a3cc114fe2 Mon Sep 17 00:00:00 2001 From: Romain CLEMENT Date: Sun, 1 Oct 2023 12:42:48 +0000 Subject: [PATCH] Patched lower bound for birthdate random choice --- src/modules/date/Date.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/date/Date.cpp b/src/modules/date/Date.cpp index c2a1755d8..3bea03f9b 100644 --- a/src/modules/date/Date.cpp +++ b/src/modules/date/Date.cpp @@ -84,7 +84,7 @@ std::string Date::birthdateByYear(int minYear, int maxYear) tm startDateTime{}; startDateTime.tm_year = minYear - 1900; startDateTime.tm_mon = 0; - startDateTime.tm_mday = 0; + startDateTime.tm_mday = 1; startDateTime.tm_hour = 0; startDateTime.tm_min = 0; startDateTime.tm_sec = 0;