mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
The start point derived from the oldest activity sample was guarded only by timestamp > 0. A bogus near-epoch sample timestamp passes that guard and resolves the start to ~1970, triggering a full historical resync. Floor it at 2015-01-01; Gadgetbridge predates that, so any earlier sample is not real device data. Reuses the indexed getFirstActivitySample(after) query so the bogus head rows are skipped at the DB level.