Jump to content
  • 0

Need guide to change timezone on FluxCP


devcloud

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   1
  • Joined:  09/07/16
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Good to know :D

Link to comment
Share on other sites

×
×
  • Create New...