I see the latest birth year as 5768.
All the other statistics values are in Gregorian years.
2 DATE 22 JAN 2008
2 DATE @#DHEBREW@ 15 SHV 5768
Logged In: YES
These two dates are the same (i.e. they have the same julian day).
We simply find the date with the highest JD, and then print the year for that date.
If there is more than one date with the same JD, one will be picked at random.
...continued (clicked submit too soon).
I can add the calendar type to the sort key, so that it always prefers one to the other.
If you want this logic adding, can you let me know which calendar should take priority, and whether you want the same logic on first-year as well as last-year.
Logged In: YES
I would prefer on my site the Gregorian dates both for the earliest and the latest dates, others might prefer other calendars as the primary ones.
SVN2626. Where equal dates exist, gregorian dates are given priority.
I see still 5768 for the Latest Birth Year even after I clean the cache.
SVN revision: 2640
The statistics class has been rewritten (without this logic).
I've added it back in.
We see still the Hebrew birth year on the statistics block, when the child was born between sunset and midnight.
For instance when the Gregorian date is "20 FEB 2008" and the Hebrew date is "@#DHEBREW@ 15 ADR 5768".
We should check for equal dates or equal+1 day in the Hebrew date.
By the way, if the Hebrew date is written in the GEDCOM before the Gregorian date, we see only the Hebrew date in charts, the Close relatives Tab and on the family page.