Time Zone problems on international systems: Difference between revisions
Jump to navigation
Jump to search
IVSWikiBlue (talk | contribs) No edit summary |
IVSWikiBlue (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
Time zones may need to be set manually in the following two files | <div class="floating_card">Time zones may need to be set manually in the following two files.</div> | ||
Edit this file by entering the following: <pre>sudo nano /etc/<php_ver>/cli/php.ini</pre> | <div class="section"> | ||
Edit this file by entering the following: | |||
<pre>sudo nano /etc/<php_ver>/cli/php.ini</pre> | |||
[Date] | [Date] | ||
| Line 15: | Line 17: | ||
date.timezone = Asia/Kolkata | date.timezone = Asia/Kolkata | ||
Restart the apache2 service after making edits by entering the following: <pre>sudo service apache2 restart</pre> | Restart the apache2 service after making edits by entering the following: | ||
<pre>sudo service apache2 restart</pre> | |||
</div> | |||
Revision as of 21:49, 5 January 2023
Time zones may need to be set manually in the following two files.
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/KolkataEdit 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/Kolkata
Restart the apache2 service after making edits by entering the following:
sudo service apache2 restart