Skip to content

Fix LAVA timestamps for the Chrome family (tz-aware UTC)#739

Merged
abrignoni merged 1 commit into
mainfrom
lava-fix-dt-chrome
Jun 19, 2026
Merged

Fix LAVA timestamps for the Chrome family (tz-aware UTC)#739
abrignoni merged 1 commit into
mainfrom
lava-fix-dt-chrome

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Corrects the LAVA epoch for the Chrome family's datetime columns (they were fed naive datetimes, so the stored epoch was shifted by the report machine's timezone — affecting both the per-browser tables and the combined output).

  • chromeBookmarks built a naive datetime object (datetime(1601,1,1)+timedelta); now tzinfo=timezone.utc makes it UTC-aware.
  • chromeCookies (3 datetime cols), chromeOfflinePages (2), chromeLoginData (1), chromeMediaHistory Sessions/Playbacks/Origins (1 each): wrap the SQL datetime(...) strings with convert_human_ts_to_utc.

No query changes; HTML/TSV now show explicit UTC (+00:00), consistent with iLEAPP.

Verified: all parse, lint-clean, loader resolves with no warnings; the conversion was confirmed to produce the correct UTC epoch.

The Chrome artifacts fed naive datetimes to their 'datetime' columns, so the
LAVA epoch was shifted by the report machine's timezone (both the per-browser
tables and the combined output). Make them tz-aware:

- chromeBookmarks built a naive datetime object (datetime(1601,1,1)+timedelta);
  add tzinfo=timezone.utc so it is UTC-aware.
- chromeCookies (3 cols), chromeOfflinePages (2), chromeLoginData (1),
  chromeMediaHistory Sessions/Playbacks/Origins (1 each): wrap the SQL datetime
  strings with convert_human_ts_to_utc.

HTML/TSV now show explicit UTC; no query changes.
@abrignoni abrignoni merged commit 6401f30 into main Jun 19, 2026
1 check passed
@abrignoni abrignoni deleted the lava-fix-dt-chrome branch June 19, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant