lemaetech/http-cookie

date-time too hard to use

Opened this issue · 3 comments

craff commented

Why no use Calendar library for this? It is pretty standard with little dependency and has a formatted printing allowing to output a coherent date. If you have no time, I can do a PR.

craff commented

Time in Unix is also relatively general if you do not want dependency.

I am looking to use https://github.com/bikallem/http-date for parsing using date values in http cookies. It uses ptime as its date representation. Mostly the lib intends to be free of unix dependency since it wants to be used in mirage unikernels.

craff commented

There is also the solution to drop the support for "expires". It is now recommanded to use max-age and
IE7 was the last not to support max-age from what I have read. So it seems reasonnable to me?