Difference between revisions of "Time Zone problems on international systems"

From IVS Wiki
Jump to: navigation, search
Line 14: Line 14:
 
  ; http://php.net/date.timezone
 
  ; http://php.net/date.timezone
 
  date.timezone = Asia/Kolkata
 
  date.timezone = Asia/Kolkata
 +
 +
sudo service apache2 restart

Revision as of 09:36, 13 March 2018

Time zones may need to be set manually in the following two files:

sudo nano /etc/<php_ver>/cli/php.ini

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Kolkata

sudo nano /etc/<php_ver>/apache2/php.ini

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Kolkata

sudo service apache2 restart