Simple-Calendar icon indicating copy to clipboard operation
Simple-Calendar copied to clipboard

Age incorrect for birthdays before 1970

Open aberkl opened this issue 3 years ago • 3 comments

  1. Create Birthday in Simple Contacts i.e. 1960-01-01, verify age is correct
  2. Import into Simple Calendar

Result: Age is incorrect, seems to be calculated from Linux Epoch 1970-01-01

bd1

bd2

aberkl avatar Aug 21 '22 08:08 aberkl

If that may help, I don't see the problem in 6.17.1 (I also don't use Simple Contacts)

llevrel avatar Aug 24 '22 16:08 llevrel

The problem is only with private contacts from Simple Contacts and also occurs in 6.17.0. It seems to be related to this fragment of code in MainActivity:

                    if (date.year < 70) {
                        date.year = 70
                    }

Aga-C avatar Aug 29 '22 07:08 Aga-C