As the OP mentioned that he tried to set cookie max age to 2 years but the cookie updated to 1 year and a few days only.
You can easily test it using StorageAce chrome extension.
Go to its settings and set Max Cookie Age to 2 years as shown below.

Then add a new cookie using the Add button in the extension.

As you can see that the expiration date has been set to 2 years from the creation date which is Mon May 19 2025 18:25:58 GMT+0530 (India Standard Time)
Once you save and re-open it again, then you will see that though the expiration date was 2 years at the time of saving, but it was automatically reduced to around 400 days by the browser when actually saved.