Search
 
SCRIPT & CODE EXAMPLE
 

PHP

date_default_timezone_set for india in php laravel

 Inside config/app.php
 replace timezone
 'timezone' => 'Asia/Kolkata'
Comment

date_default_timezone_set for india in php

<?php
	date_default_timezone_set("Asia/Kolkata");   //India time (GMT+5:30)
	echo date('d-m-Y H:i:s');
?>
Comment

PREVIOUS NEXT
Code Example
Php :: php set error log file 
Php :: php mysql create table 
Php :: check session in blade laravel 
Php :: how to connect to a database in php 
Php :: php copy image from one folder to another 
Php :: php datetime object get unix timestamp 
Php :: how get all files name in one folder in laravel 
Php :: how to set field type of date of birth in laravel 
Php :: call metho din config laravel 
Php :: php artisan migrate reset 
Php :: php get location from ip address 
Php :: pre_r 
Php :: Get html by ajax 
Php :: php create file html 
Php :: check exist string in string php 
Php :: transaction in laravel 
Php :: laravel insert with id 
Php :: check if date between two dates laravel eloquent 
Php :: laravel get all vendor files 
Php :: Check duplicate email using Jquery validation 
Php :: how to add data to the request object in laravel 
Php :: php fpm status check 
Php :: php pop off the first character of string 
Php :: how to escape html tags in php 
Php :: return json response id name from eloquent all laravel 
Php :: strupper php 
Php :: php curl ssl verify 
Php :: how make exception laravel if operation does not work 
Php :: php file read 
Php :: melhor linguagem de programação 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =