Setting the Time Zone in PHP


Define the default time zone for all date/time functions in a script.

Source Code

date_default_timezone_set('America/New_York');
echo date('Y-m-d H:i:s');
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments