Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

date_default_timezone_set()

3 tags 1 category

date_default_timezone_set() — Sets the default timezone used by all date/time functions in a script.

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

Instead of using this function to set the default timezone in your script, you can also use the INI setting date.timezone to set the default timezone.

Returns: This function returns false if the timezoneId isn’t valid, or true otherwise.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…