matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Time.After comparison instead of Equal in sorting

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Contact sorting at config/cache.go:144 uses After() for comparison but doesn't handle equal times correctly across timezones.

To reproduce

  1. Create contacts with LastUsed at same instant, different timezones
  2. Sort contacts
  3. Inconsistent ordering

Expected behavior Use Equal() for equivalence check, After() only for strict ordering

Matcha version master

OS All

Additional context File: config/cache.go line 144 Timezone-dependent sorting bug

andrinoff avatar Apr 21 '26 14:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot