From d8c20022d8836c04700bbd4a3f889cda09ca7302 Mon Sep 17 00:00:00 2001 From: Rick Ye Date: Sun, 13 Sep 2026 01:07:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(browser):=20=E6=BA=90=20Cookie=20=E7=9A=84?= =?UTF-8?q?=20expires=5Futc=20=E6=8D=A2=E7=AE=97=E7=A7=BB=E5=85=A5=20SQL?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=BC=80=20int64=20=E8=B6=8A=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/src/main/browser/browser-profile.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/main/browser/browser-profile.ts b/apps/desktop/src/main/browser/browser-profile.ts index 2ddbe81..8d71f3e 100644 --- a/apps/desktop/src/main/browser/browser-profile.ts +++ b/apps/desktop/src/main/browser/browser-profile.ts @@ -306,8 +306,15 @@ async function readSourceCookies(root: string, staging: string): Promise 0 THEN expires_utc / 1000000 - 11644473600 ELSE 0 END AS expires_sec, ' + + 'samesite FROM cookies' + ) .all() const cookies: BrowserCookieSeed[] = [] let skipped = 0 @@ -321,7 +328,7 @@ async function readSourceCookies(root: string, staging: string): Promise 0 ? { expirationDate: r.expires_utc / 1_000_000 - 11_644_473_600 } : {}), + ...(r.expires_sec > 0 ? { expirationDate: r.expires_sec } : {}), ...(mapSameSite(r.samesite) ? { sameSite: mapSameSite(r.samesite) } : {}) }) } catch {