# fix\(desktop\): convert Firefox cookie expiries by schema version · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/a45827ce45f0c71c17b59f2d234333dbc6f565b5)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: a45827ce45f0c71c17b59f2d234333dbc6f565b5

Requested commit: a45827ce45f0c71c17b59f2d234333dbc6f565b5

Commit: a45827ce45f0c71c17b59f2d234333dbc6f565b5

Tree: 0efd9fb5b440edb75d3a41d53ecb06ad93f3628e

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(desktop): convert Firefox cookie expiries by schema version

Firefox schema 16 (Firefox 129) moved `moz_cookies.expiry` from seconds to
milliseconds — the migration is `UPDATE moz_cookies SET expiry = expiry * 1000`
— but the reader passed the value straight through as seconds, so persistent
cookies from a current Firefox were imported ~1000× too far in the future.
Older profiles still hold seconds, so the unit is decided by `PRAGMA
user_version` rather than assumed either way.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

- [7bc002cad0c6ef49fee181314317a6492a4e5166](https://git.cafe/pingdotgg/t3code/commit/7bc002cad0c6ef49fee181314317a6492a4e5166?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/a45827ce45f0c71c17b59f2d234333dbc6f565b5?format=markdown)
