Error "It is not safe to rely on the system's timezone settings" in PHP: how to fix?
Hello everyone! I just started learning PHP and encountered an unclear error when trying to output the current date. I'm writing a simple script:
```php
```
But instead of the date, I get a warning:
```
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
```
I'm working on a local OpenServer, PHP version 8.2. I tried googling, but the advice varies: some say to edit php.ini, others say to add a function in the code.