Github user rnewson commented on the pull request:
https://github.com/apache/couchdb/pull/388#issuecomment-192951662
I think that works but I wonder if this is better;
```
{Date0, _} = calendar:universal_time(),
Days0 = calendar:date_to_gregorian_days(Date0),
Days1 = Days0 + 365,
Date1 = calendar:gregorian_days_to_date(Days1)
```
For caching, saying we cache for 365 days (rather than 1 year) seems fine.
Or we could look at how we determine cookie expiration.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---