-
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
Send clearAfter as UTC time to the backend #35976
Send clearAfter as UTC time to the backend #35976
Conversation
@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
…er-date-as-localtime-to-the-backend
The PR is ready @abdulrahuman5196 please review it and let me know if you have any comment |
return ''; | ||
} | ||
|
||
const localTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be the timezone user selected in the preferences?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree that we need to use timezone.selected
however it will not work here because the input date is in the local timezone not in the selected timezone format so i had to use the same timezone as the local machine so that we don't have any mismatch in the date
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abzokhattab Could you kindly check on the below comments?
…er-date-as-localtime-to-the-backend
…er-date-as-localtime-to-the-backend
Reviewing now |
The status is cleared properly. The status time is shown wrongly in toolTip(observing the same is staging). Do let us know if this is something related to this PR or different issue as well? Screen.Recording.2024-02-22.at.6.50.27.PM.mov |
…er-date-as-localtime-to-the-backend
This reverts commit 73045a9.
I think this is a different issue since i was able to reproduce it already on the latest main. try to change the selected timezone of the user to a diff timezone then change the status clear at and send a message to any user then hover on the profile report action tooltip. let me know what you think as well |
I agree on this. Working on review again now. |
Screen.Recording.2024-02-27.at.1.38.55.PM.mov@abzokhattab Last time the status was cleared #35976 (comment). But while testing today the status is not getting cleared. Could you kindly check on this? |
@abzokhattab Any update on the above? |
Thanks abdelrahman for the ping, i will check it today |
…er-date-as-localtime-to-the-backend
@abdulrahuman5196 It's the opposite on my case, the status is cleared before the time specified here I set the clear at to 8 pm in Cairo which is sent correctly as 6pm in the UTC timezone, however after a minute, the status is cleared Screen.Recording.2024-02-29.at.3.43.43.PM.movi guess there is an issue with the backend pusher that clears the status, maybe it doesn't parse the date as UTC what do you think @abdulrahuman5196 ? |
@abdulrahuman5196 @abzokhattab are you able to reproduce the issue anymore? While using production I am able to set my status, and it is clearing at the proper time. |
@stitesExpensify just now tested in staging, doesn't seem to be working for me. |
I doubt. @stitesExpensify It would be good to know from backend, even sending the date as UTC is failing? Any help from backend investigation would be helpful here. |
I will investigate on the backend ASAP |
So that I don't forget when that happens, my guess is that the job run time is being set incorrectly |
@stitesExpensify I think so, can you please check that? in my case i checked the time sent to the backend from the request and it seems to be sent correctly as |
Hi, @stitesExpensify Where you able to check on this? |
No, I was not. Unfortunately this project is a low priority at the moment. I will try to get to it as soon as I can |
@abzokhattab I think we can close this PR for now - #33128 (comment) |
Details
Fixed Issues
$ #33128
$ #33128 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-02-12.at.11.37.38.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-02-12.at.11.35.31.PM.mov
iOS: Native
Screen.Recording.2024-02-12.at.11.37.38.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-02-12.at.11.35.31.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-12.at.11.05.31.PM.mov
MacOS: Desktop
Screen.Recording.2024-02-12.at.11.21.53.PM.mov