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

Wrong hour in history email module #6

Open
vslonska opened this issue Aug 2, 2024 · 8 comments
Open

Wrong hour in history email module #6

vslonska opened this issue Aug 2, 2024 · 8 comments

Comments

@vslonska
Copy link

vslonska commented Aug 2, 2024

Hello,
In the email widget and history email tab on accounts pages, and in the email history page (yetiforceaddress/index.php?module=OSSMailView&view=List), all the emails have a wrong hour as the received hour of the email (two hours before the email was really sent).
In the email header, the date and hour is ok. All the UTC timezones are set (in the account settings of the Yetiforce user, in the php.ini, in the pool of php-fpm, in the php.ini cli which is used by the Cron). The email appears correctly in Rouncube.

Can you tell me were the problem can come from, or if there is a setting of the timezone somewhere for this module ?

My version of php is php 8.3, with php-fpm enabled.

Thanks,

@vslonska
Copy link
Author

Hello,
Anyone still answer on Github for Yetiforce ?
Thanks,
Regards,

@rskrzypczak rskrzypczak transferred this issue from YetiForceCompany/YetiForceCRM Sep 12, 2024
@rskrzypczak rskrzypczak reopened this Sep 12, 2024
@vslonska
Copy link
Author

Hello,
I still have the same problem with the last update.
In headers of the emails, I have the correct date and hour. But the "date" field in the database (vtiger_ossmailview) is two hours before (UTC time I suppose). In module=OSSMailView&view=Detail and in the widget of the contacts page and account page, prospects page, etc.

Screenshot 2024-09-17 at 23-11-10 Historique Email Test 22h34

I don't know why Yetiforce don't use my local time, set in my settings, in the Cron, in php.ini, in the conf file of the pool of php-fpm...
Screenshot 2024-09-17 at 23-13-28 Historique Email Test 22h34

Thanks for your answer,
Regards,

@vslonska
Copy link
Author

And in main.php
Capture decran du 2024-09-17 23-27-00

@rskrzypczak
Copy link
Contributor

check your time zone settings in user preferences and I don't mean just your user but also the administrator (everyone)

@vslonska
Copy link
Author

Hello,
Thank you for your answer.
I just have this setting (index.php?module=Users&view=PreferenceDetail), and it's correctly set :
Screenshot 2024-09-18 at 21-06-02

It's in the main (super admin) user.

I never saw any other setting. Where would that be?

Thank you,
Regards,

@vslonska
Copy link
Author

vslonska commented Sep 20, 2024

Hello,
Does anyone would have an idea about how to correct that ?
Thanks,
Regards,

@vslonska
Copy link
Author

Hello,
After a change of server of the main install, I have this problem now on that main installation. It worked normally before on the previous server.
So the problem doesn't come from the configuration of Yetiforce but from where this module (email history) takes its timezone setting. All the others dates are right (calendar, Inbox, Rouncube, etc.). It's just the email history module that have a wrong hour.
Thank a lot for any help,
Regards,

@vslonska
Copy link
Author

Hello,
I can also add that only the record of received emails are false. Sent emails are with the correct hour. I noticed that in the database, the hour of received emails are in UTC time, but with the local timezone (+2 in my case), which is not the correct setting of course.
I have no idea of how to correct that. I already tried to set the server back in UTC time, and I verified that mysql also works in UTC.

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

No branches or pull requests

2 participants