The recipients local time should not be shown if both timezones have the same UTC offset
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:
Assume that timezone A and timezone B have the same UTC offset, but different names. Example: Europe/Moscow and Europe/Istanbul (both are UTC +3).
- Log in with account A
- Go to profile settings
- Manually set timezone to timezone A
- Log in with account B
- Go to profile settings
- Manually set timezone to timezone B
- Open chat with account A
Expected Result:
The recipients local time should not be shown if both timezones have the same UTC offset.
Actual Result:
The recipients local time is shown even though it's the same as your time

Workaround:
None, just ignore it.
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL:
Upwork job link: https://www.upwork.com/jobs/~01a188f913804e58a3
Triggered auto assignment to @sakluger (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Proposal
Use moment timezone's utcOffset function to get offset and compare that instead of timezone names:
- In file ReportActionCompose.js add a method like this:
getTimezoneOffset(timezone) {
return moment().tz(timezone).utcOffset();
}
- Update the code for determining
shouldShowReportRecipientLocalTime. Replace line 454 with the following:
&& this.getTimezoneOffset(currentUserTimezone.selected) !== this.getTimezoneOffset(reportRecipientTimezone.selected);
We can discuss moving getTimezoneOffset to a function in lib/DateUtils, but that doesn't seem necessary to me.
@sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Thanks for reporting this! I made a small update to the expected behavior section for clarify, otherwise I think that this is a real problem that we should fix.
Sending along to engineering to review the proposal.
Triggered auto assignment to @stitesExpensify (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Triggered auto assignment to @michaelhaxhiu (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Solution looks good to me! @michaelhaxhiu we're good to hire @dklymenk when the job is created
@michaelhaxhiu, @stitesExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@dklymenk was this an issue you self discovered and reported?
Upwork job link is here - please drop a proposal and I'll hire you!
https://www.upwork.com/jobs/~01a188f913804e58a3
Hello, yes. I think I posted it before we got the guideline about reporting issues on slack, so I created a self discovered issue the old way.
Proposal submitted.
Hired and updated price to $500 (to include bonus for self discovery).
Solution looks good to me! @michaelhaxhiu we're good to hire @dklymenk when the job is created
Done @stitesExpensify - will leave the next steps of reviewing the PR to you and @dklymenk
:hand: 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 @stitesExpensify in version: 1.0.97-1 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
π Deployed to production by @francoisl in version: 1.0.98-1 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
Looks like this went to production. Provided there are no regressions, the payout is due on Sept 23
Paid. π¬