Congratulations for this great lib, solved me a sad moment.
I noticed mktime64 correct input_date, but leaving an incorrect year if date is not in safe range.
I modified sources, adding
/* correct variation of year on input_date */
input_date->tm_year = year - date.tm_year + safe_date.tm_year - 1900;
after line 542 (copying safe_date on input_date) and it seems to work correctly.
Do you think it is acceptable?
Thank you for your job
-Cristiano