HackBrowserData
HackBrowserData copied to clipboard
Bug: Chromium timestamps are wrong
The start time should be 1601/1/1 00:00 UTC instead of local time, so all timestamps are 8 hours early if you are in UTC+8 timezone.
On macOS, the timestamps are 8h 5m 43s 0ms early in UTC+8 timezone. Didn't figure out the cause.
Should just do epoch -= 11644473600000000.
https://github.com/moonD4rk/HackBrowserData/blob/ecb8db1854c77231037fc041c90b41f4c1b5acf4/utils/typeutil/typeutil.go#L42-L53
Note: the timestamp was correct pre-v0.4.x:
https://github.com/moonD4rk/HackBrowserData/blob/38a40cb29c6c60545b44f1c049bc04695d2d8486/utils/utils.go#L43-L54
To identify export data generated pre-v0.4.x, the format was "...Z" instead of "...+08:00".