Skip to content

Input date modified when calling mktime64 #7

Description

@tucanus

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions