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: https://tagstack.org/article/how-to-set-or-get-default-timezone-in-php

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.