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"]
23
23
smallvec = " 1.0"
24
24
percent-encoding = " 1"
25
25
hyper = { version = " 0.10.13" , default-features = false }
26
- time = " 0.2.9 "
26
+ time = " 0.2.11 "
27
27
indexmap = " 1.0"
28
28
rustls = { version = " 0.16" , optional = true }
29
29
state = " 0.4"
Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ impl Cookies<'_> {
373
373
}
374
374
375
375
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 ) ) ;
377
377
}
378
378
379
379
if cookie. same_site ( ) . is_none ( ) {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ log = "0.4"
31
31
toml = " 0.4.7"
32
32
num_cpus = " 1.0"
33
33
state = " 0.4.1"
34
- time = " 0.2.9 "
34
+ time = " 0.2.11 "
35
35
memchr = " 2" # TODO: Use pear instead.
36
36
binascii = " 0.1"
37
37
pear = " 0.1"
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ impl<'c> LocalRequest<'c> {
414
414
// with the changes reflected by `response`.
415
415
if let Some ( ref jar) = client. cookies {
416
416
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 ( ) ;
418
418
for cookie in response. cookies ( ) {
419
419
if let Some ( expires) = cookie. expires ( ) {
420
420
if expires <= current_time {
You can’t perform that action at this time.
0 commit comments