Forum arrow_forward_ios Codding

Questions By
Monjoti Mondol
card_giftcard ₹0

question_answer error timezone php or set time php timezone

Hello everyone, 

error timezone php on my site, 

Whenever I update time on my database with NOW(), it doesn't shows the present day.

I want to know How to set time php timezone on my site.

I Want to know is there is any php code that will fixed it. Because in my site it is showing error the I need to fixed the timezone.

Thank you for help.
09-04-2018, Total 1 Ans Best Answered , 65 views


check_circle_outline BEST ANSWER

Ok friends, finally I got the solution

And Here is the answer,

To set timezone with php, just put this code at the top of the every page of your website, and it will be ok

<?php date_default_timezone_set("asia/kolkata");  ?>
 
Here I am giving asia/kolkata because I am from India, and it will show Indian timezone.

But for other countries timezone, you need to put different in the place of asia/kolkata

Here are some of the list, for country wise time, 

For AFRICA continent

Africa/Abidjan	Africa/Accra	Africa/Addis_Ababa	Africa/Algiers	Africa/Asmara

Africa/Asmera	Africa/Bamako	Africa/Bangui	Africa/Banjul	Africa/Bissau

Africa/Blantyre	Africa/Brazzaville	Africa/Bujumbura	Africa/Cairo	Africa/Casablanca

Africa/Ceuta	Africa/Conakry	Africa/Dakar	Africa/Dar_es_Salaam	Africa/Djibouti

Africa/Douala	Africa/El_Aaiun	Africa/Freetown	Africa/Gaborone	Africa/Harare

Africa/Johannesburg	Africa/Juba	Africa/Kampala	Africa/Khartoum	Africa/Kigali

Africa/Kinshasa	Africa/Lagos	Africa/Libreville	Africa/Lome	Africa/Luanda

Africa/Lubumbashi	Africa/Lusaka	Africa/Malabo	Africa/Maputo	Africa/Maseru

Africa/Mbabane	Africa/Mogadishu	Africa/Monrovia	Africa/Nairobi	Africa/Ndjamena

Africa/Niamey	Africa/Nouakchott	Africa/Ouagadougou	Africa/Porto-Novo	Africa/Sao_Tome

Africa/Timbuktu	Africa/Tripoli	Africa/Tunis	Africa/Windhoek
 
For America Continent

America/Adak	America/Anchorage	America/Anguilla

America/Antigua	America/Araguaina	America/Argentina/Buenos_Aires

America/Argentina/Catamarca	America/Argentina/ComodRivadavia	America/Argentina/Cordoba

America/Argentina/Jujuy	America/Argentina/La_Rioja	America/Argentina/Mendoza

America/Argentina/Rio_Gallegos	America/Argentina/Salta	America/Argentina/San_Juan

America/Argentina/San_Luis	America/Argentina/Tucuman	America/Argentina/Ushuaia

America/Aruba	America/Asuncion	America/Atikokan

America/Atka	America/Bahia	America/Bahia_Banderas

America/Barbados	America/Belem	America/Belize

America/Blanc-Sablon	America/Boa_Vista	America/Bogota

America/Boise	America/Buenos_Aires	America/Cambridge_Bay

America/Campo_Grande	America/Cancun	America/Caracas

America/Catamarca	America/Cayenne	America/Cayman

America/Chicago	America/Chihuahua	America/Coral_Harbour

America/Cordoba	America/Costa_Rica	America/Creston

America/Cuiaba	America/Curacao	America/Danmarkshavn

America/Dawson	America/Dawson_Creek	America/Denver

America/Detroit	America/Dominica	America/Edmonton

America/Eirunepe	America/El_Salvador	America/Ensenada

America/Fort_Wayne	America/Fortaleza	America/Glace_Bay

America/Godthab	America/Goose_Bay	America/Grand_Turk

America/Grenada	America/Guadeloupe	America/Guatemala

America/Guayaquil	America/Guyana	America/Halifax

America/Havana	America/Hermosillo	America/Indiana/Indianapolis

America/Indiana/Knox	America/Indiana/Marengo	America/Indiana/Petersburg

America/Indiana/Tell_City	America/Indiana/Vevay	America/Indiana/Vincennes

America/Indiana/Winamac	America/Indianapolis	America/Inuvik

America/Iqaluit	America/Jamaica	America/Jujuy

America/Juneau	America/Kentucky/Louisville	America/Kentucky/Monticello

America/Knox_IN	America/Kralendijk	America/La_Paz

America/Lima	America/Los_Angeles	America/Louisville

America/Lower_Princes	America/Maceio	America/Managua

America/Manaus	America/Marigot	America/Martinique

America/Matamoros	America/Mazatlan	America/Mendoza

America/Menominee	America/Merida	America/Metlakatla

America/Mexico_City	America/Miquelon	America/Moncton

America/Monterrey	America/Montevideo	America/Montreal

America/Montserrat	America/Nassau	America/New_York

America/Nipigon	America/Nome	America/Noronha

America/North_Dakota/Beulah	America/North_Dakota/Center	America/North_Dakota/New_Salem

America/Ojinaga	America/Panama	America/Pangnirtung

America/Paramaribo	America/Phoenix	America/Port-au-Prince

America/Port_of_Spain	America/Porto_Acre	America/Porto_Velho

America/Puerto_Rico	America/Rainy_River	America/Rankin_Inlet

America/Recife	America/Regina	America/Resolute

America/Rio_Branco	America/Rosario	America/Santa_Isabel

America/Santarem	America/Santiago	America/Santo_Domingo

America/Sao_Paulo	America/Scoresbysund	America/Shiprock

America/Sitka	America/St_Barthelemy	America/St_Johns

America/St_Kitts	America/St_Lucia	America/St_Thomas

America/St_Vincent	America/Swift_Current	America/Tegucigalpa

America/Thule	America/Thunder_Bay	America/Tijuana

America/Toronto	America/Tortola	America/Vancouver

America/Virgin	America/Whitehorse	America/Winnipeg

America/Yakutat	America/Yellowknife
 
For Antarctica continent

Antarctica/Casey	Antarctica/Davis	Antarctica/DumontDUrville	Antarctica/Macquarie	Antarctica/Mawson

Antarctica/McMurdo	Antarctica/Palmer	Antarctica/Rothera	Antarctica/South_Pole	Antarctica/Syowa

Antarctica/Vostok
 
For Asia Continent

Asia/Aden	Asia/Almaty	Asia/Amman	Asia/Anadyr	Asia/Aqtau

Asia/Aqtobe	Asia/Ashgabat	Asia/Ashkhabad	Asia/Baghdad	Asia/Bahrain

Asia/Baku	Asia/Bangkok	Asia/Beirut	Asia/Bishkek	Asia/Brunei

Asia/Calcutta	Asia/Choibalsan	Asia/Chongqing	Asia/Chungking	Asia/Colombo

Asia/Dacca	Asia/Damascus	Asia/Dhaka	Asia/Dili	Asia/Dubai

Asia/Dushanbe	Asia/Gaza	Asia/Harbin	Asia/Hebron	Asia/Ho_Chi_Minh

Asia/Hong_Kong	Asia/Hovd	Asia/Irkutsk	Asia/Istanbul	Asia/Jakarta

Asia/Jayapura	Asia/Jerusalem	Asia/Kabul	Asia/Kamchatka	Asia/Karachi

Asia/Kashgar	Asia/Kathmandu	Asia/Katmandu	Asia/Khandyga	Asia/Kolkata

Asia/Krasnoyarsk	Asia/Kuala_Lumpur	Asia/Kuching	Asia/Kuwait	Asia/Macao

Asia/Macau	Asia/Magadan	Asia/Makassar	Asia/Manila	Asia/Muscat

Asia/Nicosia	Asia/Novokuznetsk	Asia/Novosibirsk	Asia/Omsk	Asia/Oral

Asia/Phnom_Penh	Asia/Pontianak	Asia/Pyongyang	Asia/Qatar	Asia/Qyzylorda

Asia/Rangoon	Asia/Riyadh	Asia/Saigon	Asia/Sakhalin	Asia/Samarkand

Asia/Seoul	Asia/Shanghai	Asia/Singapore	Asia/Taipei	Asia/Tashkent

Asia/Tbilisi	Asia/Tehran	Asia/Tel_Aviv	Asia/Thimbu	Asia/Thimphu

Asia/Tokyo	Asia/Ujung_Pandang	Asia/Ulaanbaatar	Asia/Ulan_Bator	Asia/Urumqi

Asia/Ust-Nera	Asia/Vientiane	Asia/Vladivostok	Asia/Yakutsk	Asia/Yekaterinburg

Asia/Yerevan
 
Ok Just choice your country's timezone and you are all done

But if you want more timezone details, then check this out

Monjoti Mondol
09-04-2018

more_horiz Other Answers

Please lock LOGIN to Answer

announcement Recently Asked

question_answer
question_answer
question_answer


announcement Related Ques

question_answer
question_answer
question_answer
question_answer
question_answer
How to get date of every after 30 days using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
How to get the nested Array Data using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
How to properly get Pre Signed URL from s3 Bucket?
Ans(1) ₹0 check_circle_outline
question_answer
How much is the Margin Money of PMEGP Loan fo ST?
Ans(1) ₹0 check_circle_outline
question_answer
I want to register SENDER ID for my SNS SMS, on AWS.
Ans(1) ₹0 check_circle_outline
question_answer
Which is the right time to get EDP Training?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
How much Amazon Cloud Hosting charges?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
php count variable values separated with comma
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
error timezone php or set time php timezone
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
What were the documents required for PMEGP Loan?
Ans(1) ₹0 check_circle_outline
question_answer
How to get the present full url using PHP
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
How to transfer data from one website to another?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
How to delete the terminated intences in AWS Amazon?
Ans(2) ₹0 check_circle_outline
question_answer
Which is the best website to learn MongoDB online?
Ans(3) ₹0 check_circle_outline
question_answer
How many countries Twilio can send SMS?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
What is the maximum transaction limits in RazorPay?
Ans(1) ₹0 check_circle_outline
question_answer
PHP SDK - Delete Object not working on s3 - error \
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Linux repeated Keyword problems.. how to solve it?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
How to create discount percentage using php?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
check if the radio input is checked using javascript
Ans(1) ₹0 check_circle_outline
question_answer
PHP code to get the token of Shiprocket.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
How to use webview on Android studio react native?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
What is SKU in shiprocket? From where I can get it?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
How to Propose Girls in this 2019?
Ans(2) ₹0 check_circle_outline
question_answer
How to Create Login and Logout system using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
How to integrate RazorPay with my website using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
1mb is equal to how much bytes?
Ans(1) ₹0 check_circle_outline
question_answer
How to delete projects from pinPoint on AWS?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
How to enable email functions on php?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
How to do Long poll using PHP and JavaScript?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
How to open a file using Ubuntu Terminal?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
How to send sms using Terminal on AWS SNS?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
How to install PHP?
Ans(0) ₹0
question_answer
question_answer
question_answer
question_answer
How to write ourl url for SEO on href attribute
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
What is the response time of PHP $post variable?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
convert numbers into words in php
Ans(2) ₹0 check_circle_outline
question_answer
html css center horizontal list, menu system
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
Which is the most played sports in the world?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
Need PHP functions to convert currencies.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
What is the amount of withdrawn in RazorPay?
Ans(1) ₹0 check_circle_outline
question_answer
Need codes to see the Country using Cloudflare.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
Delete s3 object using PHP SDK.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Is RazorPay Really simple and esay to ues?
Ans(1) ₹0 check_circle_outline
question_answer
Multiple database vs single database on mysql?
Ans(1) ₹0 check_circle_outline
question_answer
Need codes to send SMS using AWS SNS in PHP.
Ans(1) ₹0 check_circle_outline
question_answer
.htaccess not working on my site .. what to do?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
Is this PMEGP Loan works Offline also?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
EDP Training Center in Kokrajhar area.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Which type of area is kown as Urban an Rural?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
The test asking
Ans(0) ₹0
question_answer
question_answer
Need ShipRocket support mobile number.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
Do Aliens really exists?
Ans(3) ₹0 check_circle_outline
question_answer
How pyshic powers work? Is it real or just rumors?
Ans(3) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
Does girls like a man with a beard and mustache
Ans(2) ₹0 check_circle_outline
question_answer
PMEGP Loan Guide Lines.
Ans(1) ₹0 check_circle_outline
question_answer
What is La Liga?
Ans(1) ₹0 check_circle_outline
question_answer
Need official website links for PMEGP Loan.
Ans(1) ₹0 check_circle_outline
question_answer
multiple aws s3 bucket vs one aws s3 bucket?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Can I create live straming videos using cloudfront?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
What is zend2?
Ans(0) ₹0
question_answer
How much tables one Mysql database can have?
Ans(1) ₹0 check_circle_outline
question_answer

WelCome to the World of Digital Expression

Transform your Works into Digital and Makes your life more easier.

121

Total users

121

Active users

5

Active Earners

location_on BTR,Assam,INDIA
(Bodoland)
email [email protected]
call +91 8486866741
rss_feed

Copyright ©2019-20 mritunjoy.com,All Rights Reserved