-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-10-25] [$250] Android - Timezone-Instead of Asia/Kolkata, America/Los Angeles time zone displayed #49014
Comments
Triggered auto assignment to @trjExpensify ( |
@trjExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Hm, I can't repro this on the browserstack. Asking someone with an Android device to give it a try. |
@trjExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~021835786081971713587 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
Thanks, @slafortune! Moving it on. 👍 |
Edited by proposal-police: This proposal was edited at 2024-10-03 10:30:26 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Timezone-Instead of Asia/Kolkata, America/Los Angeles time zone displayed What is the root cause of that problem?When executing the
App/src/libs/Navigation/AppNavigator/AuthScreens.tsx Lines 154 to 160 in 539327d
What changes do you think we should make in order to solve the problem?
This issue only occurs with newly created accounts, where the default value automatically determines the location. To resolve it, we can wait for // .src/libs/Navigation/AppNavigator/AuthScreens.tsx#L131
- let timezone: Timezone | null;
// .src/libs/Navigation/AppNavigator/AuthScreens.tsx#L142
- timezone = null;
// .src/libs/Navigation/AppNavigator/AuthScreens.tsx#L158
- if (!value || timezone) {
- return;
- }
- timezone = value?.[currentAccountID]?.timezone ?? {};
+ const timezone = value?.[currentAccountID]?.timezone ?? {};
const currentTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone as SelectedTimezone;
if (!isEmptyObject(currentTimezone) && timezone?.automatic && timezone?.selected !== currentTimezone) {
// We don't need to set `selected` here because the timezone will be updated after completing `updateAutomaticTimezone`.
- timezone.selected = currentTimezone;
PersonalDetails.updateAutomaticTimezone({
automatic: true,
selected: currentTimezone,
});
} POC
Screen.Recording.2024-10-03.at.17.09.49.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
and
and there is no API to update the timezone is triggered. What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
@akinwale, @trjExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@akinwale I tested your selected solution but the bug is still appeared. Did I miss something? With that solution, the code is early returned in:
|
I'll have another look at this. |
@akinwale, Thank you for reviewing my proposal. The solution to this issue is to check whether the |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @mkzie2 You have been assigned to this job! |
How are we looking on the pr @mkzie2 ? |
@akinwale @dangrous @trjExpensify @mkzie2 this issue is now 4 weeks old, please consider:
Thanks! |
@akinwale do you think you'll have time to review today? |
Yes, I'll get this later today. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.50-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-10-25. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Not a regression.
Regression Test Steps
Do we agree 👍 or 👎? |
Can you expand on that a bit, please? It's certainly not expected that the timezone of the app is PST on sign-up. We have a timeZone account NVP that's set, and has been for years. |
The timezone being an empty object was never accounted for in the original implementation, so that led to this issue where it falls back to the default which is PST. Line 1268 in 9f97734
|
Hm, okay. I'm not wholly convinced this isn't a regression from somewhere later than the implementation of the timeZone profile setting (i.e some "personal details" onyx updates or something), but probably not worth investing in further. Payment summary as follows: |
Paid, closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.32-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4949281
Issue reported by: Applause Internal Team
Action Performed:
Keep location enabled in your device
Expected Result:
Incorrect time zone displayed.
Actual Result:
Instead of Asia/Kolkata, America/Los Angeles time zone displayed.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6599795_1726053852288.yg.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: