File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ private-cookies = ["cookie/secure"]
2323smallvec = " 1.0"
2424percent-encoding = " 1"
2525hyper = { version = " 0.10.13" , default-features = false }
26- time = " 0.2.9 "
26+ time = " 0.2.11 "
2727indexmap = " 1.0"
2828rustls = { version = " 0.16" , optional = true }
2929state = " 0.4"
Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ impl Cookies<'_> {
373373 }
374374
375375 if cookie. expires ( ) . is_none ( ) {
376- cookie. set_expires ( time:: OffsetDateTime :: now ( ) + time:: Duration :: weeks ( 1 ) ) ;
376+ cookie. set_expires ( time:: OffsetDateTime :: now_utc ( ) + time:: Duration :: weeks ( 1 ) ) ;
377377 }
378378
379379 if cookie. same_site ( ) . is_none ( ) {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ log = "0.4"
3131toml = " 0.4.7"
3232num_cpus = " 1.0"
3333state = " 0.4.1"
34- time = " 0.2.9 "
34+ time = " 0.2.11 "
3535memchr = " 2" # TODO: Use pear instead.
3636binascii = " 0.1"
3737pear = " 0.1"
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ impl<'c> LocalRequest<'c> {
414414 // with the changes reflected by `response`.
415415 if let Some ( ref jar) = client. cookies {
416416 let mut jar = jar. write ( ) . expect ( "LocalRequest::_dispatch() write lock" ) ;
417- let current_time = time:: OffsetDateTime :: now ( ) ;
417+ let current_time = time:: OffsetDateTime :: now_utc ( ) ;
418418 for cookie in response. cookies ( ) {
419419 if let Some ( expires) = cookie. expires ( ) {
420420 if expires <= current_time {
You can’t perform that action at this time.
0 commit comments