Skip to content
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-05-20][$250]Timezone is wrong when using Etc/GMT - reported by @rushatgabhane #8251

Closed
mvtglobally opened this issue Mar 21, 2022 · 19 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2

Comments

@mvtglobally
Copy link

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:

  1. Login to account “A”.
  2. Go to settings -> Profile
  3. Uncheck “Set my timezone automatically”
  4. Select Etc/GMT+3 from the picker, and save.
  5. In an incognito window, login to account “B”.
  6. Go to 1:1 chat of user “A”, using Cmd + K
  7. Click on their profile photo to open RHN.

Expected Result:

Local time is GMT+3

Actual Result:

Local time is GMT-3

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.42-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen Shot 2022-03-10 at 8 43 00 PM
Screen Shot 2022-03-10 at 8 26 16 PM

Expensify/Expensify Issue URL:
Issue reported by: @rushatgabhane
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1646934629146539

View all open jobs on GitHub

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Mar 21, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 21, 2022

Triggered auto assignment to @JmillsExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@melvin-bot melvin-bot bot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Mar 21, 2022
@JmillsExpensify
Copy link

Odd one, thanks for reporting! Issue looks good. I'm triaging.

@JmillsExpensify JmillsExpensify added Engineering Improvement Item broken or needs improvement. labels Mar 23, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 23, 2022

Triggered auto assignment to @yuwenmemon (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@yuwenmemon yuwenmemon added Weekly KSv2 and removed Daily KSv2 labels Mar 23, 2022
@JmillsExpensify
Copy link

@yuwenmemon To confirm, we're keeping this issue internal?

@JmillsExpensify
Copy link

Sorry for nagging @yuwenmemon :)

@yuwenmemon
Copy link
Contributor

Apologies! Yes, I'd like to work on this because I haven't done much in the App repo lately.

@JmillsExpensify
Copy link

Ok great! We'll keep your assignment and I get to tag along for the ride. :)

@JmillsExpensify
Copy link

Going to leave the weekly update to @yuwenmemon this week.

@yuwenmemon
Copy link
Contributor

Looks like we're dealing with a bug in the moment.js library...
Screen Shot 2022-04-19 at 4 35 32 PM

@yuwenmemon
Copy link
Contributor

Bug is still present in the latest version, so updating won't help...
Screen Shot 2022-04-19 at 4 42 50 PM

@yuwenmemon
Copy link
Contributor

Here's an issue for this in the moment-timezone lib: moment/moment-timezone#656

@yuwenmemon
Copy link
Contributor

yuwenmemon commented Apr 19, 2022

Okay, I see what's going on. This is not a bug. The +/- is not meant to be mathematical. It's actually a direction. So "GMT-4" means 4 timezones east of Greenwich (forward in time) and "GMT+4" means 4 timezones west of Greenwich (backward in time).

There's a DBA StackExchange rabbit hole one can go down here...

I think a simple solution would be to just remove all the Etc/GMT timezone options. All those timezones are already covered by the other timezones we have as options, so they're redundant anyway (and confusing).

@JmillsExpensify
Copy link

Oh ha wow. Great find.

I think a simple solution would be to just remove all the Etc/GMT timezone options. All those timezones are already covered by the other timezones we have as options, so they're redundant anyway (and confusing).

Yes agreed.

@yuwenmemon yuwenmemon added the Reviewing Has a PR in review label Apr 21, 2022
@melvin-bot melvin-bot bot closed this as completed Apr 21, 2022
@rushatgabhane
Copy link
Member

rushatgabhane commented Apr 21, 2022

oh noo bad bot.

@JmillsExpensify please settle the reporting bonus for me, thanks so much!

@rushatgabhane
Copy link
Member

@JmillsExpensify gentle bump :) #8251 (comment)

@mallenexpensify mallenexpensify changed the title Timezone is wrong when using Etc/GMT - reported by @rushatgabhane [HOLD for payment 2022-05-20]Timezone is wrong when using Etc/GMT - reported by @rushatgabhane May 20, 2022
@mallenexpensify mallenexpensify added the Awaiting Payment Auto-added when associated PR is deployed to production label May 20, 2022
@JmillsExpensify
Copy link

@rushatgabhane invited you to the job here: https://www.upwork.com/jobs/~0181eddfc7e8c9ee36. Accept and I'll issue payment. Thanks!

@JmillsExpensify JmillsExpensify changed the title [HOLD for payment 2022-05-20]Timezone is wrong when using Etc/GMT - reported by @rushatgabhane [HOLD for payment 2022-05-20][$250]Timezone is wrong when using Etc/GMT - reported by @rushatgabhane May 23, 2022
@rushatgabhane
Copy link
Member

rushatgabhane commented May 23, 2022

@JmillsExpensify accepted, thankss!

@JmillsExpensify
Copy link

Great! Offer sent. I'll circle back when you confirm that part and we can pay out.

@JmillsExpensify
Copy link

I saw you accepted. I just issued payment via Upwork. Closing out this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants