Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
phpdatetimezone [2016/03/15 17:41]
yassine chaouche created
phpdatetimezone [2016/09/20 16:07]
yassine chaouche
Line 1: Line 1:
 \\ \\
-[[:​index|Home]] > [[:​linux|linux]] > [[:​php|php]] > [[PhpDateTimeZone|PhpDateTimeZone]] | [[:​about|About]]+[[:​index|Home]] > [[:​linux|linux]] > [[:php|php]] > [[phpconfig]] > [[PhpDateTimeZone|PhpDateTimeZone]] | [[:​about|About]] 
 + 
 +Open your php.ini file (it should be in /​etc/​php5/​apache2/​php.ini if you're using debian or a debian derivative like ubuntu) and locate the [DATE] section, then simply  
 +<​code>​ 
 +[Date] 
 +; Defines the default timezone used by the date functions ​                       
 +; http://​php.net/​date.timezone ​                                                  
 +;​date.timezone =                                                                 
 +date.timezone = Africa/​Algiers 
 +</​code>​ 
 + 
 +Check [[http://​php.net/​manual/​en/​timezones.php|http://​php.net/​manual/​en/​timezones.php]] for available timezones.
  
-I'm working on it... 
 ---- ----
  
 contact : [[http://​twitter.com/​ychaouche|@ychaouche]] yacinechaouche at yahoocom contact : [[http://​twitter.com/​ychaouche|@ychaouche]] yacinechaouche at yahoocom
  

QR Code
QR Code phpdatetimezone (generated for current page)