mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
A date filter's `v` holds UTC instants — startOfDayIso/endOfDayIso end in toISOString(). Both readers took `iso.slice(0, 10)`, which is the UTC calendar day. East of UTC those differ: at UTC+3 a local start-of-day is 21:00Z on the PREVIOUS day, so the pill printed the "from" date one day early and reopening the picker preselected that wrong day. The "to" side happened to look right, which is what made it read as cosmetic. isoToLocalDateStr reads the instant back in local time for the picker; the pill goes through the shared formatDate, so it now reads "Aug 20, 2026 → Aug 25, 2026" instead of a raw ISO fragment. Single-sided operators carry their operator word — "Created | Aug 20" alone doesn't say whether that is a floor or a ceiling.