The website indicates the client's time or WHERE?

I have set the timezone on the website date_default_timezone_set('Asia/Manila');

This is still running on localhost, so the time will really be based on my computer time.

As I manually set the timezone on the website; when it goes online, how long will the site base be? Will it always be GMT + 8 or hosting time, or will it be based on user time? Will the set time zone or wait time be saved or something overwrite it?

I am really confused about what will happen to the timezone if the website goes online.

+3


source to share


2 answers


If you enter the date via PHP, you will see the server time.



http://www.w3schools.com/php/php_ref_date.asp

0


source


It will consider the server timezone and according to the set timezone, it will add or subtract hours. If you have machine server time 2015-05-25 12:00:00.000000

and it is UTC+08

, and you installed it UTC+04

in your application, you will get time like2015-05-25 08:00:00.000000



0


source







All Articles