App icon indicating copy to clipboard operation
App copied to clipboard

Profile - GMT time is not displayed

Open isagoico opened this issue 5 years ago • 37 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Expected Result:

GMT time is displayed as GMT -3

Actual Result:

"GMT" is not displayed, only the time and "-03" is visible.

Action Performed:

  1. Log in as account A
  2. Set the time zone of the account to America/Sao_Paulo
  3. Log out of account A
  4. Log in as another account and check account A's profile.

Attachments/Notes

Found while executing https://github.com/Expensify/Expensify.cash/pull/1717

Device and OS: Huawei P20 Pro / 10.0

Is the issue reproducible in Prod: Yes

Build version: 1.0.6-1

isagoico avatar Mar 26 '21 01:03 isagoico

Hi,

This is Kaushik here and this is my technical explanation for this issue.

  1. This is a time format issue it will be managed by moment js.

kaushiktd avatar Mar 26 '21 16:03 kaushiktd

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

MelvinBot avatar Mar 31 '21 20:03 MelvinBot

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

MelvinBot avatar Apr 07 '21 18:04 MelvinBot

I think I missed this because it's in the .cash repo.

@stitesExpensify when you're happy with the review we'll need to create an External issue in E/E https://expensify.slack.com/archives/C01SKUP7QR0/p1617220984062300?thread_ts=1617218921.052600&cid=C01SKUP7QR0

muttmuure avatar Apr 07 '21 18:04 muttmuure

@kaushiktd 's solution sounds fine to me, I think we can move forward with making the external issue

stitesExpensify avatar Apr 08 '21 16:04 stitesExpensify

Hello, @isagoico . How are you? I've already solved your issue. It was due to the moment().tz function doesn't provide the GMT xx style (only xx style as like today) So I've customized some features simply and fixed the issue perfectly. 1 2

Looking forward to hearing from you soon. Thanks.

johndev0711 avatar Apr 09 '21 19:04 johndev0711

Moved this issue to E/E so the solution can be managed through Upwork

muttmuure avatar Apr 12 '21 09:04 muttmuure

@muttmuure per Stites' comment, can you get this on Upwork and keep the ball moving? Bumped to daily.

mallenexpensify avatar May 02 '21 17:05 mallenexpensify

@isagoico Still exist this issue? I am looking forward to discussing this issue.

johndev0711 avatar May 02 '21 17:05 johndev0711

Hey @mallenexpensify I can't seem to post the job, is this because I'm missing some privileges in Upwork?

It's currently a draft under 'React Native - GMT time is not displayed correctly #2097'

I'm not in the contributor-management team, so maybe that's why?

muttmuure avatar May 04 '21 14:05 muttmuure

phew, posted

muttmuure avatar May 05 '21 16:05 muttmuure

External Upwork post: https://www.upwork.com/jobs/~011019e1dd3c19946a Internal Upwork post: https://www.upwork.com/ab/applicants/1389982427044622336/job-details

muttmuure avatar May 05 '21 16:05 muttmuure

Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar May 05 '21 16:05 MelvinBot

Alright, @kaushiktd has been hired for this job! 🎉

Christinadobrzyn avatar May 07 '21 07:05 Christinadobrzyn

Here, it is fixed. https://drive.google.com/file/d/1C7tjEB2PXyFrSEP0PXsxHVxMesYObSsS/view?usp=sharing

kaushiktd avatar May 07 '21 08:05 kaushiktd

Hi @kaushiktd can you create a pull request and link it to this issue please?

stitesExpensify avatar May 07 '21 17:05 stitesExpensify

Pull request or push the code?

kaushiktd avatar May 07 '21 17:05 kaushiktd

Step 7-9 here https://github.com/Expensify/Expensify.cash/blob/main/CONTRIBUTING.md#working-on-expensifycash-jobs

stitesExpensify avatar May 07 '21 18:05 stitesExpensify

I have never done something like that with Git and in the past once I tried which resulted in clearing up full Git repo. I m trying to follow the exact steps but it is throwing me an error in my Mac. Any guidance will be appreciated. Error

kaushiktd avatar May 08 '21 05:05 kaushiktd

Issue reproducible during today's KI retests

isagoico avatar May 09 '21 22:05 isagoico