-
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 6th August] Timezone information is not visible when app is in Spanish #4218
Comments
Triggered auto assignment to @deetergp ( |
This happens because inside
This is causing Which is null when the language is Spanish (because of the format). Proposal:Use
This will make sure that the date is in |
oh nice catch @helaoutar . |
Hi there, Let me know if we want a solution without changing the formatting ( |
@helaoutar I don't think that solution is good. US uses AM/PM by default, but Spain uses 24h system as default. We should not be changing the format to be the same in every country, because that defeats the purpose of localizing the app. The fix should be to not rely on finding am/pm in the timestamp here. So, yes, @aman-atg, we want a solution that does not change the format. |
I added that check as localized time was available with a delay. But I didn't notice the Other languages. We can simply remove this check and Print the whole message when complete time string is available. |
Proposal:Explanation
Solution :App/src/pages/home/report/ParticipantLocalTime.js Lines 43 to 47 in c009187
moment.locale(this.props.preferredLocale);
shouldComponentUpdate(nextProps, nextState) {
return nextState.localTime !== this.state.localTime;
} testing.mp4 |
This is not true. In the constructor, State is initialized with a value. There must be some other reason. If I am missing something, could you please explain?
This was used as a
seems helpful in reducing rendering. |
Here, I meant changing the state after the language has been changed
|
This is definitely something that can be handled externally. |
Triggered auto assignment to @trjExpensify ( |
Triggered auto assignment to @timszot ( |
Posted the job to Upwork here: https://www.upwork.com/jobs/~01c1138bff53cf206e |
I don't think your solution works @aman-atg This is what we're trying to avoid with the web.movProposalThis happens because we're looking for a We mistakenly added this check to avoid the flash shown in the video above. The flash happens because we're not localizing the language in our Lines 37 to 40 in ad77386
To solve this, we can:
|
@rdjuric testing.mp4 |
@trjExpensify we can go ahead and hire @aman-atg for this one! |
No @aman-atg, moment is sync and returns no promises.
The behavior happens, that's why @parasharrajat added the check. The AM/PM flashes when you first open or when you refresh the page. Isn't this why you added the |
|
I don't think there's much else I can say, your proposal was wrong and you still don't understand the cause of the issue. I also really dislike that your updated proposal only includes more boilerplate code instead of fixing the root cause. But this is not my call so that's okay, good luck on the PR 😃 |
|
Please be careful with updating the locale at the moment globally. this will cause another issue where we want to run moment() to get the time/date. Please correct me if I am wrong about |
Hey guys, catching up here. As a reminder, please keep the conversation constructive. This isn't a community that welcomes petty exchanges and insults. We're here to focus on getting shit done and building something that we all are truly proud of as a collective. Our open source community is an extension of Expensify and one of our core values is Humility. It's totally healthy to disagree on a problem or a proposed solution, but we expect members of the community to approach these conversations constructively, with humility and the persistence to find common ground and agreement. "Agreeing to disagree" isn't helpful either, it means you either feel like it's impossible to come to an agreement or you aren't interested in coming to agreement, neither of which is reflective of a humble quality and signals a disregard for the opinions and ideas of others. So let's work together, and get along. If this behaviour persists from here on, it will result in the immediate termination of your participation in the Expensify Contributor Community as per our Code of Conduct. Thanks for your cooperation, let's move on. 🚀 |
PR merged and on staging. |
I see a regression that I fixed when I initially added this feature. @trjExpensify @isagoico Could you please test this and confirm? Thanks The steps are as follows:
|
Oh yeah I see it. Want me open a separate issue for this? Or should this be treated as a deploy blocker. Note: it's only happening in English. Spanish shows 24 hour format |
No. As this is a regression it should be fixed as part of it. just Mark the issue on the linked PR. Thanks. @isagoico |
Ah. It's hard to see at first sight. I know about this as I faced this earlier while creating that time string. I pointed this out #4218 (comment) here
So I think it is. But yeah it could be not a regression from this PR. |
Found the cause of regression here |
@timszot, @trjExpensify, @aman-atg it looks like no one is assigned to work on this job. |
@vitHoracek I don't think this message is correct. We shouldn't be showing these on issues held for payment, right? |
@trjExpensify, Any update for this one on Upwork? Thanks. |
Yep, sorry for the delay @aman-atg. Paid! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Timezone comment should be visible at any time.
Actual Result:
Timezone information is not visible when app is in Spanish. The message can be briefly seen just as the user changes the app to Spanish but it disappears after ~1sec
Workaround:
User can check the time zone in the user profile.
Platform:
Where is this issue occurring?
Version Number: 1.0.80-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Screenshot from video showing the translated text that's visible for an instant:
Recording.201.mp4
Upwork job URL:* https://www.upwork.com/jobs/~01c1138bff53cf206e
View all open jobs on Upwork
From @JmillsExpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1627011603184100
The text was updated successfully, but these errors were encountered: