-
-
Notifications
You must be signed in to change notification settings - Fork 155
Fix Toggle All-Day clearing form data and preventing date shifts #866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: seanmorley15 <[email protected]>
Co-authored-by: seanmorley15 <[email protected]>
|
@copilot, if i have something like 8AM and toggle and then untoggle all day it pushes back a day. It should literally just strip or add time component! |
…ions Co-authored-by: seanmorley15 <[email protected]>
Fixed in commit ba0cf19. The issue was caused by unnecessary timezone conversions during the toggle operation. The toggle now only strips/adds the time component without doing UTC→local conversions that caused date shifts. Testing shows: Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|

The "Toggle All-Day" feature was incorrectly clearing form data instead of preserving dates and just stripping/adding time components. Additionally, the toggle was causing date shifts due to unnecessary timezone conversions during the toggle operation.
Issues Fixed
'T00:00'and'T23:59', causing the form to lose user inputRoot Cause
The issues were in the all-day toggle handlers in both
DateRangeCollapse.svelteandLocationVisits.svelte:Solution
Changes Made
handleAllDayToggle()function with proper validation and removed timezone round-trip conversionsTesting
Comprehensive testing was performed covering all edge cases:
2024-01-15T08:00→2024-01-15→2024-01-15T08:00✅All scenarios now work correctly without generating invalid dates, clearing user input, or causing date shifts.
Fixes #609.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.