Fail to set the expires
property of cookie
#2127
Answered
by
SergioBenitez
tguichaoua
asked this question in
Questions
-
I'm trying to set the let cookie = Cookie::build("NAME", "VALUE")
.expires(time::OffsetDateTime::now_utc())
.finish();
|
Beta Was this translation helpful? Give feedback.
Answered by
SergioBenitez
Mar 21, 2022
Replies: 1 comment 2 replies
-
Make sure you use the right |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
tguichaoua
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure you use the right
time
. In 0.5, Rocket re-exports it from the crate root for convenience.