Search
 
SCRIPT & CODE EXAMPLE
 

PHP

indian time laravel

Go to your_project/config/app.php, there is a line:
	'timezone' => ''
set it to:
	'timezone' => 'Asia/Kolkata'

It will set the default timezone to Asia/Kolkata. After setting this you will 
get Indian time.

Here is the list of Supported Timezones
https://www.php.net/manual/en/timezones.php
Comment

PREVIOUS NEXT
Code Example
Php :: laravel create migration view 
Php :: how to add a text to image in php 
Php :: mobile number validation in laravel 8 
Php :: create variable in laravel blade 
Php :: php redirect after specific seconds 
Php :: laravel join query sum example 
Php :: view pdf file in a new tab in php 
Php :: how to get time php with am/pm 
Php :: laravel not in query 
Php :: laravel migration add column after 
Php :: laravel base url 
Php :: spatie media library retrieve media from url 
Php :: php sessions 
Php :: turn text file to string php 
Php :: woocommerce check if cart is not empty 
Php :: php read json request body 
Php :: How to check leap year in php? 
Php :: laravel module remove 
Php :: php string to char array 
Php :: laravel mongodb delete 
Php :: show selected value in dropdown laravel 
Php :: php stmt prepare error 
Php :: how to write for loop in laravel blade 
Php :: laravel send ajax 
Php :: php mixing 2 string 
Php :: php elseif 
Php :: unset session in php 
Php :: wordpress global variable not working 
Php :: php serverpath 
Php :: php foreach mysql result 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =