ITADN

Bug Report: Month View "View All" shows only one event due to day-range timezone shift in event fetch

#7515Opengautam-divyanshu 创建于 2026-03-24
bug
**Describe the bug** In the Monthly Event Calendar, clicking **View All** for a day with multiple events sometimes shows only one (or wrong-day) event. This happens because the day-range sent to the `events` query is built from local midnight and converted to ISO, which can shift the date in non-UTC timezones. **To Reproduce** 1. Open Organization Events in **Month** view. 2. Use a day where preview shows `totalCount > 1` and `hasMore: true` (for example, `2026-03-24`). 3. Click **View All** on that day. 4. Observe the expanded list and compare it with preview count / backend data. **Expected behavior** All events for the selected calendar day should appear after clicking **View All**, matching the preview day count semantics. **Actual behavior** Only one event (often from the previous UTC day) appears after clicking **View All**, even when preview indicates multiple events for that day. **Screenshots** **Additional details** - Affected flow uses day-specific query with `onlyStartOnDay: true`. - Root cause: local day start/end converted to ISO introduces timezone day shift. - Suggested fix: send stable UTC day boundaries for selected day key: - `YYYY-MM-DDT00:00:00.000Z` - `YYYY-MM-DDT23:59:59.999Z`
0 条评论