How to set Laravel Carbon timezone for timestamps?
问题 I have a project which is primarily based in CET region. I set CET in config/app.php, but all pivot timestamps in the base are stored in UTC time? How can I set "global" timezone for timestamps? i made this test: <?php $timezone = date_default_timezone_get(); echo "The current server timezone is: " . $timezone; echo "<br />".date('m/d/Y h:i:s a', time()); $mytime = Carbon\Carbon::now(); echo "<br />".$mytime->toDateTimeString(); ?> and here's the result: The current server timezone is: CET 06