When editing a record the time value in the date_modified field does not match the server time

I have observed that when updating a record the time in the date_modified field is two hours less than the server time. I have searched without success in the configuration for something related.

Could you tell me how to resolve this case.

Greetings and thanks in advance

Maybe check that both your relevant php.ini’s have the correct date.timezone.

That’s the CLI php.ini and the web server one.

You can find the CLI one with

php -i | grep php.ini

And the web server one by getting it from Admin / Diagnostics /phpinfo

On second thoughts, maybe that’s not an issue at all.

All times in the DB are UTC, maybe that’s what you’re seeing? Do they show correctly on the UI when you load the record?

UTC time now