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

How do I get the same date and time that appears in the mailbox? #464

Open
albertopinilla opened this issue Mar 1, 2023 · 1 comment
Open
Labels

Comments

@albertopinilla
Copy link

albertopinilla commented Mar 1, 2023

How do I get the same date and time that appears in the mailbox? The date returned by getDate() is not the correct one, I am getting it with the attribute 'x_ms_exchange_crosstenant_originalarrivaltime' but it is not the correct one either, it has an offset with respect to Received. Obviously I know that the date is in UTC, but it doesn't return the same as the one shown in the mailbox.

Screenshot 2023-02-28 215128

Screenshot 2023-02-28 215336

image

@Webklex
Copy link
Owner

Webklex commented Mar 1, 2023

Hi @albertopinilla ,
you might have to experiment with setting the timezone afterwards:

Take a look at the official carbon documentation:
https://carbon.nesbot.com/docs/

You can also try to set your laravel timezone and see if this helps to move the time into the right direction:
https://laravel.com/docs/10.x/configuration#introduction

Best regards & happy coding,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants