Difference between revisions of "Time Zone problems on international systems"
IVSWikiBlue (talk | contribs) |
IVSWikiBlue (talk | contribs) |
||
Line 1: | Line 1: | ||
Time zones may need to be set manually in the following two files: | Time zones may need to be set manually in the following two files: | ||
− | + | 1) Edit this file by entering the following: <pre>sudo nano /etc/<php_ver>/cli/php.ini</pre> | |
[Date] | [Date] | ||
Line 8: | Line 8: | ||
date.timezone = Asia/Kolkata | date.timezone = Asia/Kolkata | ||
− | + | 2) Edit this file by entering the following: <pre>sudo nano /etc/<php_ver>/apache2/php.ini</pre> | |
[Date] | [Date] | ||
Line 15: | Line 15: | ||
date.timezone = Asia/Kolkata | date.timezone = Asia/Kolkata | ||
− | + | 3) Restart the apache2 service after making edits by entering the following: <pre>sudo service apache2 restart</pre> |
Revision as of 09:37, 15 May 2019
Time zones may need to be set manually in the following two files:
1) Edit this file by entering the following: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/Kolkata2) Edit this file by entering the following:
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/Kolkata3) Restart the apache2 service after making edits by entering the following:
sudo service apache2 restart