Jump to content
  • 0
devcloud

Need guide to change timezone on FluxCP

Question

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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.