DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,503 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.