PHP 7 Script to Set Default Timezone Using date_default_timezone_set() Method Full Project For Beginners

  • Post author:
  • Post category:PHP
  • Post comments:0 Comments

 

Welcome folks today in this blog post we will be setting the default timezone using date_default_timezone_set() method using php 7. All the full source code of the application is shown below.

See also  PHP 7 Script to Add Watermark Logo to Uploaded Local Image File in Browser Full Project For Beginners

 

 

 

Get Started

 

 

 

In order to get started you need to make an index.php file and copy paste the following code

 

See also  PHP 7 Script to Compress Files and Directories and Download a ZIP,RAR File Using Ziparchive Class in Browser Full Project For Beginners

 

index.php

 

 

<?php
date_default_timezone_set("Asia/Kolkata");
echo date_default_timezone_get();
echo "<br>";
echo date('H:i:s');
?>

Leave a Reply