summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Cookie/Cookie.h
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2023-03-13 22:35:22 +0100
committerJelle Raaijmakers <jelle@gmta.nl>2023-05-24 23:18:07 +0200
commiteffcd080ca802515ddce8392c70df512b509f57c (patch)
treea04e9a7927ddc9103129c4aa0d8b4d88976f4720 /Userland/Libraries/LibWeb/Cookie/Cookie.h
parent82c681e44b57563074e5c12dc7e36134b36ae750 (diff)
downloadserenity-effcd080ca802515ddce8392c70df512b509f57c.zip
Userland: Remove remaining users of Duration::now_realtime()
This is a clear sign that they want to use a UnixDateTime instead. This also adds support for placing durations and date times into SQL databases via their millisecond offset to UTC.
Diffstat (limited to 'Userland/Libraries/LibWeb/Cookie/Cookie.h')
-rw-r--r--Userland/Libraries/LibWeb/Cookie/Cookie.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Cookie/Cookie.h b/Userland/Libraries/LibWeb/Cookie/Cookie.h
index 805dadb20c..34a34aba81 100644
--- a/Userland/Libraries/LibWeb/Cookie/Cookie.h
+++ b/Userland/Libraries/LibWeb/Cookie/Cookie.h
@@ -32,9 +32,9 @@ struct Cookie {
DeprecatedString name;
DeprecatedString value;
SameSite same_site;
- Duration creation_time {};
- Duration last_access_time {};
- Duration expiry_time {};
+ UnixDateTime creation_time {};
+ UnixDateTime last_access_time {};
+ UnixDateTime expiry_time {};
DeprecatedString domain {};
DeprecatedString path {};
bool secure { false };