Php time zone sri lanka

Time Difference, Current Local Time and Date of the World's Time Zones.
Php time zone sri lanka

  • Deutsch
  • Español
  • Français
  • 中文
  • हिंदी

What time is it?

Current local time inAsia/Colombo

Time Zone: UTC+5:30

Universal Time Coordinated GMT / UTC

UTC+5:30

Daylight Saving Time

In this time zone there is no Daylight Saving Time in use.

Time Zone Converter (Time Difference Calculator)

Compare the local time of two timezones, countries or cities of the world.

Time Difference to major World Cities

Country

Major Cities in Time Zone Asia/Colombo

Other Time Zones with UTC +5:30

How to Set the PHP Timezone in cPanel

Posted by LankaHost NOC on 15 February 2017 11:47 AM

On all our servers, default time zone is Sri Lanka ( GMT + 5.30), However depend on the customizations you will see some diffrent time zones in your account. You can change the PHP time zone in your account by doing following changes.

Step 1 :

Log-in to the cPanel and navigate to file manager, Public_html folder

Step 2:

If there is php.ini file, open it using a text editor in file manager.

    ** If there is no any php.ini file, you can create a new file and name it as php.ini

Step 3:

Add following line on top the php.ini file

date.timezone = "Asia/Colombo"

Step 4:

If you need to use some other time zone, you can replace it with valid time zone from here.

Once you save the file, it will reflect in your web site.

Php time zone sri lanka
(2 vote(s))

Php time zone sri lanka
Helpful

Php time zone sri lanka
Not helpful


Asia

Asia/Aden Asia/Almaty Asia/Amman Asia/Anadyr
Asia/Aqtau Asia/Aqtobe Asia/Ashgabat Asia/Atyrau
Asia/Baghdad Asia/Bahrain Asia/Baku Asia/Bangkok
Asia/Barnaul Asia/Beirut Asia/Bishkek Asia/Brunei
Asia/Chita Asia/Choibalsan Asia/Colombo Asia/Damascus
Asia/Dhaka Asia/Dili Asia/Dubai Asia/Dushanbe
Asia/Famagusta Asia/Gaza Asia/Hebron Asia/Ho_Chi_Minh
Asia/Hong_Kong Asia/Hovd Asia/Irkutsk Asia/Jakarta
Asia/Jayapura Asia/Jerusalem Asia/Kabul Asia/Kamchatka
Asia/Karachi Asia/Kathmandu Asia/Khandyga Asia/Kolkata
Asia/Krasnoyarsk Asia/Kuala_Lumpur Asia/Kuching Asia/Kuwait
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/Qostanay Asia/Qyzylorda
Asia/Riyadh Asia/Sakhalin Asia/Samarkand Asia/Seoul
Asia/Shanghai Asia/Singapore Asia/Srednekolymsk Asia/Taipei
Asia/Tashkent Asia/Tbilisi Asia/Tehran Asia/Thimphu
Asia/Tokyo Asia/Tomsk Asia/Ulaanbaatar Asia/Urumqi
Asia/Ust-Nera Asia/Vientiane Asia/Vladivostok Asia/Yakutsk
Asia/Yangon Asia/Yekaterinburg Asia/Yerevan  

There are no user contributed notes for this page.

What time zone does Sri Lanka use?

Sri Lanka Time is consistent with UTC +5:30. The Sri Lanka Time does not have an associated daylight saving time.

Where is PHP timezone set?

8 Answers.
Go to your phpinfo() page and search for Loaded Configuration File and open the php. ini file mentioned under that section..
Change the default timezone settings by adding your new timezone by modifying this line: date. timezone=Asia/Kolkata ..
Save the php. ... .
Restart the Apache server..

What is timezone PHP?

Definition and Usage The date_default_timezone_set() function sets the default timezone used by all date/time functions in the script.

What timezone is UTC for PHP?

The default timezone for PHP is UTC regardless of your server's timezone. This is the timezone used by all PHP date/time functions in your scripts. See PHP's list of supported timezones to find the names of all possible timezones you can use for the date.

Does Sri Lanka have one time zone?

Time Zone in Sri Lanka Sri Lanka observes India Standard Time all year. There are no Daylight Saving Time clock changes.

What is Sri Lanka GMT?

Sri Lanka is GMT/UTC + 5:30h during Standard Time.