Wrong Cron time in webmin

OS type and version Rocky Linux 8.6
Webmin version 2.021

Hello everyone. If in a PHP file I indicate that the date and time be written to a file, for example

file_put_contents(WRITEPATH.‘logs/myFyle.txt’, “\n”.date(‘Y-m-d H:i:s’), FILE_APPEND);

is displayed:

2023-06-26 12:06:12

which is correct. But if I do it from a Webmin Cron, it is displayed

2023-06-26 05:06:12

However the Cron runs at the correct time. Would I have to configure something in Webmin? Thank you very much in advance.

Webmin → System Information → Time on system is ok.

Have you adjusted Time Zone for your country?

Webmin → Hardware → Set time and Change timezone. Everything appears correct.

try restart crond and rsyslog services and see if that fixes it.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.