i am using Asia/Kolkata timezone , every time it is taking UTC but i want to take time of IST.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’m seeing IST in my zonefile:
# zdump /usr/share/zoneinfo/Asia/Kolkata
/usr/share/zoneinfo/Asia/Kolkata Wed Oct 24 20:44:26 2018 IST
Another interesting tidbit is that I’m seeing Calcutta there too:
# zdump /usr/share/zoneinfo/Asia/Calcutta
/usr/share/zoneinfo/Asia/Calcutta Wed Oct 24 20:45:54 2018 IST
Anglicization, yay!
Can you try putting a info.php file with this code:
<?php
phpinfo();
?
Then open the script from your website (ex: http://example.com/info.php) and see what timezone is showing there. I’m suspecting something else is overwriting your timezone. Perhaps in another ini file. Seach for php.ini on the page as that will show you where the default.timezone is being sourced from.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.