mirror of https://github.com/stashapp/stash.git
Fix inaccurate age calculation (#1237)
This commit is contained in:
parent
7acae34ed4
commit
496900df42
|
@ -28,4 +28,4 @@
|
|||
* Fix SQL error when filtering galleries excluding performers or tags.
|
||||
* Fix version checking for armv7 and arm64.
|
||||
* Change "Is NULL" filter to include empty string values.
|
||||
* Prevent scene card previews playing in full-screen on iOS devices.
|
||||
* Prevent scene card previews playing in full-screen on iOS devices.
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
### 🎨 Improvements
|
||||
* Fix incorrect performer age calculation in UI.
|
||||
* Change performer text query to search by name and alias only.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue