DEV Community 👩‍💻👨‍💻

Mrityunjaya Prajapati
Mrityunjaya Prajapati

Posted on

How to set or get default timezone in PHP

In this tutorial, we will explain how to set or get a default timezone in PHP. This will help you to change the default timezone for all date and time in PHP

Using php built-in function date_default_timezone_set() and date_default_timezone_get() we can set and get default timezone respectively.

You can check detail article at:

Latest comments (0)

🌖🌗🌘 Turn on dark mode in Settings