Fix midnight-crossing events showing as 'all day' - #230
Conversation
- Replace date swap logic with smart date correction that trusts start date - Apply end time to start date, adding a day if it crosses midnight - Fixes all 255 events with negative durations in 2025 data - Events like 'Hot Dogs & Hard Techno Beats' (Thu 10PM-2AM) now display correctly 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @chrisballinger's task —— View job PR Review CompleteThis PR effectively fixes a critical bug where midnight-crossing events were incorrectly displayed as "all day" events. The solution is well-thought-out and properly documented. Todo List:
Review Feedback✅ StrengthsLogic and Correctness (
Code Quality
Documentation
|
|
Claude finished @chrisballinger's task —— View job PR Review CompleteThis PR effectively fixes a critical bug where midnight-crossing events were incorrectly displayed as "all day" events. The solution is well-thought-out and properly documented. Todo List:
Review Feedback✅ StrengthsLogic and Correctness (
Code Quality
Documentation
|
Summary
Problem
Users reported events incorrectly displaying as "all day" when they crossed midnight. Investigation revealed 255 events in the 2025 data with negative durations (end before start):
The previous fix was swapping dates, which created long-duration events that got marked as "all day".
Solution
New approach: Trust the start date/time as correct, apply end time to start date
Test Plan
Documentation
Created comprehensive documentation in
Docs/2025-08-22-fix-midnight-crossing-events.md🤖 Generated with Claude Code