-
Notifications
You must be signed in to change notification settings - Fork 4k
Fix cancellation policy date timezone conversion for hotel and car trips #87755
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1b40531
Display cancellation deadline in venue-local time instead of device t…
MelvinBot 2ed88df
Use parseISO from date-fns instead of new Date() for cancellation dat…
MelvinBot 00171f9
Use parseISO directly without stripping timezone offset
MelvinBot 64853e9
Compute cancellation deadline from checkInDateTime minus duration
MelvinBot 4f1e972
Fix: use undefined instead of null for optional cancellation fields
MelvinBot d2694e2
Use formatInTimeZone to preserve venue timezone in cancellation dates
MelvinBot 45e2afc
Revert changes to TripReservationUtils.ts and TripData.ts
MelvinBot 0d8c72d
Include timezone abbreviation in cancellation date format
MelvinBot c8f0de9
Use deadlineUtc for hotel cancellation deadline
MelvinBot 086ab82
Compute cancellation deadline from checkInDateTime minus duration
MelvinBot 01e48b3
Fix getFormattedCancellationDate to handle offset timezones and stabi…
MelvinBot f8ba298
Restore formatInTimeZone-based cancellation date formatting
MelvinBot db09e96
Include timezone abbreviation in cancellation date format
MelvinBot 8c93c2a
Derive cancellation timezone label from offset instead of zzz token
MelvinBot c675c95
Merge remote-tracking branch 'origin/main' into claude-fixCancellatio…
MelvinBot 73c17ff
Compute cancellation deadline in the venue's UTC offset
MelvinBot 909a8a3
Merge remote-tracking branch 'origin/main' into claude-fixCancellatio…
MelvinBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MelvinBot replace this method with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done — replaced
getCancellationDeadlinewith your version insrc/libs/TripReservationUtils.ts:237and added the required imports (formatfromdate-fns,fromZonedTime/toZonedTimefromdate-fns-tz; dropped the now-unusedparseISO).Checks run locally on the changed file:
lint✅typecheck(tsgo) ✅prettier✅npm test tests/unit/TripReservationUtilsTest.ts✅ (37/37)npm test tests/ui/ReservationAddressTest.tsx✅ (2/2)Pushed as 73c17ff.