Support the ongoing development of Laravel.io →
posted 10 years ago
Packages
Last updated 2 years ago.
0

All time functions is using the timezone you set in config/app.php, and so will Carbon.

	/*
	|--------------------------------------------------------------------------
	| Application Timezone
	|--------------------------------------------------------------------------
	|
	| Here you may specify the default timezone for your application, which
	| will be used by the PHP date and date-time functions. We have gone
	| ahead and set this to a sensible default for you out of the box.
	|
	*/

	'timezone' => 'Europe/Stockholm',
Last updated 2 years ago.
0

maybe it should be better to use ini_get('date.timezone') instead of hardcode to use value from php config:

'timezone'        => ini_get('date.timezone'),
0

Sign in to participate in this thread!

Eventy

Your banner here too?

closca closca Joined 9 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.