This function sets the default timezone used by all date/time functions.

Syntax: date_default_timezone_set(timezone)

Description:

The argument “timezone” is Required. The timezone identifier,like “UTC” or “Europe/Paris”.

Example:
Code:

echo(date_default_timezone_set("UTC"));

Output:

1

eXTReMe Tracker