Support the ongoing development of Laravel.io →
Configuration Requests Input
Last updated 2 years ago.
0

You should be worry if it doesn't change ...

Changing your computer (local server) time will affect your PHP time. This is by specification correct, and there is nothing wrong about it.

If you are talking about time zone, Laravel already comes with a default installed package called Carbon See: https://github.com/briannesbitt/Carbon for documentation / usage.

Or you could leverage on PHP DateTime Class as DateTimeZone Class

http://php.net/manual/en/class.datetime.php

http://php.net/manual/en/class.datetimezone.php

If you really have to get the "real" time, you can also rely on other services such as The Google Time Zone API or Yahoo.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

DiegoHeras diegoheras Joined 26 Dec 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.