-
Notifications
You must be signed in to change notification settings - Fork 47
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
#5664 Pull email's received time directly on Gmail #5676
#5664 Pull email's received time directly on Gmail #5676
Conversation
Hi @sosnovsky, I hope you're doing well. I'd like to check if you have any preferences regarding the date and time format, or if the one proposed in this PR is sufficient? |
Hi @sosnovsky I have re-run the test but the failing one is not related to my PR. This should be good to go. |
…evied-email-time-from-gmail
Hi @sosnovsky does this look good to you? I also plan to share a build coming from this PR to double-check if the user would get his desired date and time when print-previewing email -- it should work fine. |
…evied-email-time-from-gmail
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.
Looks good now, you can send test build to reporter for checking
…evied-email-time-from-gmail
Thanks, @sosnovsky. I've informed him, but still haven't heard their feedback. I'll update you as soon as I have it. |
@martgil I merged this PR, to include it in the upcoming release. |
* Pull email's received time directly on Gmail * update common.ts's fromDate function * fix failing test * revert changes * revert changes on common.ts * Use Gmail's received date cautiously, with the header date as a fallback * add proper date validity checking * revert changes * revert changes * Ensure the retrieval of the received date on Gmail is fail-safe * detect gmail timezone and use simple yyyy-dd-mm format used in toISOString() * add comments * code simplification * Unset user's date locale * use UTC Timezones * Fix correct time * revert changes * determine date/time based on Gmail settings * revert changes * update tests * apply simplification * update test * fix test * update test * removed unnecessary tests
The goal of this PR is to pull the exact time an email was received from Gmail. This also resolves issues with accurately retrieving the time, whether it's in a 12 or 24-hour format, since it's already provided within the pulled data from Gmail.
close #5664
Screenshots:
Opening the same email using different time format
12 hour format:
24 hour format:
To change time format in Gmail:
1.) Go to Gmail Settings -> See all settings.
2.) Change language from 'English US' to 'English UK'.
3.) Save and open the desired email.
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):