mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
Browser+LibWeb+WebContent: Store cookie expiry times in UTC
We are currently converting parsed expiry times to local time, whereas the RFC dictates we parse them as UTC. When expiring cookies, we must also use the current UTC time to compare against the cookies' expiry times.
This commit is contained in:
parent
1858163d3c
commit
87c4080d00
8 changed files with 83 additions and 47 deletions
|
@ -80,7 +80,7 @@ GUI::Variant CookiesModel::data(GUI::ModelIndex const& index, GUI::ModelRole rol
|
|||
case Column::Value:
|
||||
return cookie.value;
|
||||
case Column::ExpiryTime:
|
||||
return cookie.expiry_time.to_deprecated_string();
|
||||
return cookie.expiry_time_to_string();
|
||||
case Column::SameSite:
|
||||
return Web::Cookie::same_site_to_string(cookie.same_site);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue