date_default_timezone_set india
<?php
date_default_timezone_set("Asia/Kolkata"); //India time (GMT+5:30)
echo date('d-m-Y H:i:s');
?>date_default_timezone_set('Asia/Kolkata');date_default_timezone_set('Asia/Kolkata');
$timestamp = date("Y-m-d H:i:s");
Also in PHP:
- check if string has certain character php
- collection empty laravel
- catch all exceptions php
- You want to develop a Laravel application on your Windows machine. For this, you installed the Laravel framework on your system. In which of the following scenarios, Laravel will not run on your system?
- check if key of array key true or false php
- Argument 2 passed to App\Exceptions\Handler::unauthenticated() must be an instance of App\Exceptions\AuthenticationException, instance of Illuminate\Auth\AuthenticationException given
- array key xists
- convert time php in timestamp
- difference between two timestamps php
- codeigniter return id of last added record
- @foreach output reverse
- +1 day in while php
- cahnge header content php
- error display
- errpr reporting in php
- base code 64 a image in php
- centos excecutable php
- adding days in date, php
- Add “Affected Products” in catalog price rule
- create folder by php
- PHP Fatal error: Uncaught Error: Call to undefined function curl_init
- CURL : Get elements by class name
- add datetime to datetime php
- composer update php mbstring.so missing