Age incorrect for private contacts from Fossify Contacts who are born before 1970 #196
Open
7 tasks done
Labels
bug
Something is not working
Checklist
Affected app version
1.0.3
Affected Android/Custom ROM version
Android 13, patchlevel 2024-01-05 (FP4.TP29.C.0101.20240121)
Affected device model
Fairphone 4
How did you install the app?
F-Droid / IzzyOnDroid
Steps to reproduce the bug
Precondition: In Fossify Contacts, have Settings → Show private contacts to Fossify Dialer, Fossify SMS Messenger and Fossify Calendar enabled.
Expected behavior
Show the real age of the contact at their birthday anniversary. For a contact born on 1962-04-14, that would be 62 years on 2024-04-14.
Actual behavior
For every person born before 1970, the age is calculated as if they were born in 1970 (on the same day). I.e., the person born on 1962-04-14 would be shown age 54 on 2024-04-14, as if it were born on 1970-04-14.
Screenshots/Screen recordings
Contact:

Calendar date (2024-04-14):

Additional information
This issue had been reported against Simple Calendar before (SimpleMobileTools/Simple-Calendar/#1812), where @Aga-C gave a hint to the probable cause for this issue:
Fossify Calendar inherited this code in app/src/main/kotlin/org/fossify/calendar/activities/MainActivity.kt.
The text was updated successfully, but these errors were encountered: