-
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 2022-03-22] Always display timezone of the other person in the chat window - Reported by @Santhosh-Sellavel #7832
Comments
Triggered auto assignment to @sonialiap ( |
This is not a bug. |
I know this is on purpose and we don't display the timezone if they are the same. But to me as a user, it looks broken. I don't know if the other person is in my same timezone or not. I rather see the timezone in every chat. |
I don't think I've ever seen any chat/email systems display sender's timezone on the message timestamp. If we were to be the first to do that, it would be confusing to users since there isn't a precedent for this. Currently we show the message timestamp in your timezone. If the other person in the chat is in a different timezone then their timezone is displayed at the bottom of the window. Victoria is in AEDT, I am in PST so I'm shown her current time: If they're in the same timezone as you, then their time isn't displayed. Nikki and I are both in PST: I think it makes sense to either leave it as it is or display local time at the bottom of every chat (so my chat with Nikki would show her time too). @iwiznia do you think we should make this change? |
I have no idea where some people are or if where they are it's the same time zone as where I am. I went to a chat and wanted to know if they could be online based on their time and did not see it there, to me it looked like a bug because all other chats seemingly have it. |
Made some tweaks to the original post |
Triggered auto assignment to @chiragsalian ( |
ProposalHere is the restriction we make to hide the other user's time, where we check the other user is from a different timezone. Line 230 in 58f0168
|
Triggered auto assignment to @kadiealexander ( |
Posted to Upwork: https://www.upwork.com/jobs/~01fb9158fbedf74de3 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Current assignee @chiragsalian is eligible for the Exported assigner, not assigning anyone new. |
Proposal from Upwork Hi! This can be fixed by merging the different timezone logic from bottom with the one at the top. Eg: { timezoneOfUser1==timezoneOfUser2? < RenderLocalTime /> : < Render International Time />} Or remove the logic of checking timezones completely and just use new Date(timestamp) which will return the Date & Time object based on the users device timezone |
I like @Santhosh-Sellavel 's proposal. cc: @chiragsalian 🎀 👀 🎀 C+ reviewed |
Yup it lgtm too. Feel free to create the PR @Santhosh-Sellavel. |
📣 @Santhosh-Sellavel You have been assigned to this job by @chiragsalian! |
@Santhosh-Sellavel please don't forget to apply in Upwork! |
Done @kadiealexander ! |
Paid @Santhosh-Sellavel for his fix + reporting bonus, and paid @parasharrajat for C+. Thanks team! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Timezone should be displayed at bottom of chat in all 1:1 chats.
Actual Result:
Currently timezone is displayed at bottom of chat only if your timezone doesn't match the timezone of the other person.
Eg. Sonia is in PST, Vic is in AEDT. So in the Sonia-Vic chat both see each other's local time at the bottom of the chat window:
Sonia is in PST, and Francois is in PST. So the Sonia-Francois chat doesn't display local time at the bottom of the chat:
Showing timezone in some cases but not in others feels unintentional. Let's make it consistent by showing the other person's local time at the bottom of a 1:1 chat in all cases regardless of the participants' timezones.
Workaround:
Click on the profile icon of the person you're chatting with to open their Details panel which lists their timezone and local time.
Platform:
Where is this issue occurring?
Version Number: 1.1.38-0
Reproducible in staging?: y
Reproducible in production?: y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @Santhosh-Sellavel
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1643993593833769
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: