devcloud Posted November 2, 2016 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 52 Reputation: 1 Joined: 09/07/16 Last Seen: April 29, 2022 Share 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 Link to comment Share on other sites More sharing options...
0 Akkarin Posted November 2, 2016 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share 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) Link to comment Share on other sites More sharing options...
0 Cydh Posted November 3, 2016 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share 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 Link to comment Share on other sites More sharing options...
0 Akkarin Posted November 3, 2016 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share Posted November 3, 2016 Good to know Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
3 answers to this question
Recommended Posts