1. When writing logs in Laravel 6, the log file for the current day was not created. At the time of writing the log, the operating system time was Beijing Time: 2023-09-15 11, but laravel-2023-09-15.log was not generated. See Figure 1.

2. I found that only laravel-2023-09-14.log was generated, and I printed the output of: config(‘app.timezone’). The cause is that the timezone set in the Laravel application is: Etc/GMT+8. See Figure 2.

echo config('app.timezone');
exit;
3. In the “Etc” area, zones west of Greenwich Mean Time have a positive sign, while zones east have a negative sign. Etc/GMT+8 can be understood as UTC-8, which is 16 hours ahead of Beijing Time. Therefore, when writing the log, the time in the Laravel application was: 2023-09-14 19.
