Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date-time too hard to use #6

Open
craff opened this issue Jan 11, 2023 · 3 comments
Open

date-time too hard to use #6

craff opened this issue Jan 11, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@craff
Copy link
Contributor

craff commented Jan 11, 2023

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
Copy link
Contributor Author

craff commented Jan 11, 2023

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

@bikallem
Copy link
Contributor

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
Copy link
Contributor Author

craff commented Jan 11, 2023

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?

@bikallem bikallem added the enhancement New feature or request label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants