devcloud Posted November 2, 2016 Posted November 2, 2016 Hello. i need help regarding timezone. my fluxcp shows Philipines Time.i changed this - > 'DateDefaultTimezone' => 'Asia/Calcutta', still not not changingplease help thanks in advance
0 Cydh Posted November 3, 2016 Posted November 3, 2016 From this http://php.net/manual/en/timezones.asia.php#113195 I've tested "Asia/Calcutta" as well as "Asia/Kolkata" on PHP 5.4.7 and both returns accurate results. But I would suggest you to use "Asia/Kolkata" as "Calcutta" is now renamed to "Kolkata". <?php date_default_timezone_set("Asia/Kolkata"); echo date('d-m-Y H:i:s'); //Returns IST ?> [spoiler=Just for knowledge for others who read] https://en.wikipedia.org/wiki/Kolkata https://en.wikipedia.org/wiki/List_of_renamed_Indian_cities_and_states#West_Bengal
0 Akkarin Posted November 2, 2016 Posted November 2, 2016 Asia/Calcutta is not a supported timezone. Please see http://php.net/manual/en/timezones.asia.php config.php even tells you where to look: // The default timezone, consult the PHP manual for valid timezones: http://php.net/timezones (null for defaut system TZ)
Question
devcloud
Hello. i need help regarding timezone. my fluxcp shows Philipines Time.
i changed this - > 'DateDefaultTimezone' => 'Asia/Calcutta',
still not not changing
please help thanks in advance
3 answers to this question
Recommended Posts