mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix inaccurate age calculation (#1237)
This commit is contained in:
@@ -79,7 +79,7 @@ const getAge = (dateString?: string | null, fromDateString?: string) => {
|
||||
if (
|
||||
birthdate.getMonth() > fromDate.getMonth() ||
|
||||
(birthdate.getMonth() >= fromDate.getMonth() &&
|
||||
birthdate.getDay() > fromDate.getDay())
|
||||
birthdate.getDate() > fromDate.getDate())
|
||||
) {
|
||||
age -= 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user