Q & A

Timezone 顯示不正確

網頁預設會以系統時區的時間顯示,假使系統設定 UTC 時區,如何讓網頁的時間顯示為時區 Asia/Taipei?

解決方法: 編輯 .env

# Application timezone 
# Used where dates are displayed such as on exported content.
# Valid timezone values can be found here: https://www.php.net/manual/en/timezones.php
APP_TIMEZONE=Asia/Taipei

重啟網頁服務。



Revision #2
Created 11 August 2022 15:58:47 by Admin
Updated 11 August 2022 16:04:13 by Admin