Fix Crash for unsupported timezone values#63721
Conversation
| return isSameDay(date, yesterdayInTimeZone); | ||
| } | ||
|
|
||
| // There is no need to check same timezone support again and again as it will not change on runtime. |
There was a problem hiding this comment.
I'm not sure how necessary this comment is, I think we'd be better off having a general comment on why we need the fallback at all since that won't be obvious to those who don't have context. I think this can replace all (or most) of the in-code comments below too.
There was a problem hiding this comment.
@jjcoffee Updated comment to be more descriptive and clear.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-app-2025-06-09_15.33.18.mp4Android: mWeb Chromeandroid-chrome-2025-06-09_15.35.29.mp4iOS: HybridAppios-app-2025-06-09_15.16.14.mp4iOS: mWeb Safariios-safari-2025-06-09_15.20.28.mp4MacOS: Chrome / Safaridesktop-chrome-2025-06-09_14.45.21.mp4MacOS: Desktopdesktop-app-2025-06-09_14.44.16.mp4 |
jjcoffee
left a comment
There was a problem hiding this comment.
Tests well, just some comments to tweak!
Co-authored-by: Joel Davies <joeld.dev@gmail.com>
|
Done |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.1.64-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.1.64-5 🚀
|
Explanation of Change
Fixed Issues
$ #62381
PROPOSAL: #62381 (comment)
Tests
Offline tests
Same as tests.
QA Steps
Same as QA.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
07.06.2025_10.54.34_REC.mp4
Android: mWeb Chrome
07.06.2025_10.56.15_REC.mp4
iOS: Native
06.06.2025_22.08.04_REC.mp4
iOS: mWeb Safari
06.06.2025_22.11.33_REC.mp4
MacOS: Chrome / Safari
07.06.2025_07.39.59_REC.mp4
MacOS: Desktop
07.06.2025_10.43.36_REC.mp4