In the site console Settings - General

After connecting the kernel, you need to use the built-in WordPress function current_time() . The second parameter of this function allows you to get GMT time or local. Here is an example that illustrates this:
<?php echo 'Время php: ' . date( 'Hi' ) . '<br>'; require_once '../wp-load.php'; echo 'Время php после подключения WP: ' . date( 'Hi' ) . '<br>'; echo 'Время WP GMT: ' . current_time( 'H-i', 1 ) . '<br>'; echo 'Время WP local: ' . current_time( 'H-i', 0 ) . '<br>';
Result:
Время php: 12-24 Время php после подключения WP: 09-24 Время WP GMT: 09-24 Время WP local: 12-24
You can check on the test site page http://test.kagg.eu/so/891232.php