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: | ||
{{Article | content = | |||
<div class="floating_card">Time zones may need to be set manually in the following two files.</div> | <div class="floating_card">Time zones may need to be set manually in the following two files.</div> | ||
1. Edit this file by entering the following: | |||
Edit this file by entering the following: | :{{Code Block - Mini | text = sudo nano /etc/<b><php_ver></b>/cli/php.ini}} | ||
[Date] | [Date] | ||
| Line 10: | Line 10: | ||
date.timezone = Asia/Kolkata | date.timezone = Asia/Kolkata | ||
Edit this file by entering the following: | <hr> | ||
2. Edit this file by entering the following: | |||
:{{Code Block - Mini | text = sudo nano /etc/<b><php_ver></b>/apache2/php.ini}} | |||
[Date] | [Date] | ||
| Line 17: | Line 20: | ||
date.timezone = Asia/Kolkata | date.timezone = Asia/Kolkata | ||
Restart the apache2 service after making edits by entering the following: | <hr> | ||
3. Restart the apache2 service after making edits by entering the following: | |||
:{{Code Block - Mini | text = sudo service apache2 restart}} | |||
}} | |||
Latest revision as of 17:30, 8 March 2024
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/Kolkata
2. 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/Kolkata
3. Restart the apache2 service after making edits by entering the following:
- sudo service apache2 restart