You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Test that we can upgrade `cookie_store` crate without invalidating on-disk stored cookies.
450
450
451
451
// Load CookieStore from json like we have previously saved to disk.
452
-
let serialized_json = r#"[{"raw_cookie":"abc=def; Expires=Thu, 20 Nov 2025 12:19:29 GMT","path":["/",false],"domain":{"HostOnly":"127.0.0.1"},"expires":{"AtUtc":"2025-11-20T12:19:29Z"}}]"#;
453
-
let loaded: cookie_store::CookieStore = serde_json::from_str(serialized_json).unwrap();
452
+
let serialized_json1 = r#"[{"raw_cookie":"abc=def; Expires="#;
453
+
let expires = chrono::Utc::now()
454
+
.checked_add_signed(chrono::Duration::days(365))
455
+
.unwrap();
456
+
let expires_str1 = expires.format("%a, %d %b %Y %H:%M:%S GMT").to_string();
0 commit comments