Menu Samaritan's Purse

DATE_DEFAULT_TIMEZONE_SET

Sets the default timezone used by all date/time functions in a script

SYNTAX

date_default_timezone_set ( string $timezone_identifier ) : bool

PARAMETERS

timezone_identifier

The timezone identifier, like UTC or Europe/Lisbon. The list of valid identifiers is available in the List of Supported Timezones.

RETURN

This function returns FALSE if the timezone_identifier isn't valid, or TRUE otherwise.

EXAMPLES

TIMEZONE_IDENTIFIER

America/Los_Angeles

RETURN

true

PHP