I'm trying to change the default PHP timezone to Asia/Calcutta
by accessing the /etc/php5/cli/php.ini
file and changing
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
to
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Asia/Calcutta"
However, when I try to view current timezone under phpinfo()
, the timezone follows the Europe/Berlin
timezone.
I have tried stopping and restarting the Apache server, but that didn't seem to have changed the settings.
Is there something I'm missing in the process?
PS: I'm using PHP 5.6.8 currently under XAMPP.