tips:timezone
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tips:timezone [2014-08-08 04:23] – [Edit DokuWiki Conf] 167.88.103.34 | tips:timezone [2019-04-16 18:59] – Dr-Yukon | ||
---|---|---|---|
Line 10: | Line 10: | ||
Make sure to put the modification after "<? | Make sure to put the modification after "<? | ||
- | <code php> | + | < |
<?php | <?php | ||
date_default_timezone_set(" | date_default_timezone_set(" | ||
Line 17: | Line 17: | ||
Note that if you modify '' | Note that if you modify '' | ||
- | For changing time zone on linux shared hosting - dokuWiki/ | + | **ATTENTION: |
- | e.g. <code php>date_default_timezone_set(' | + | |
+ | For changing time zone on linux shared hosting - dokuWiki/ | ||
+ | e.g. '' | ||
+ | |||
+ | **ATTENTION: | ||
===== Edit PHP Conf ===== | ===== Edit PHP Conf ===== | ||
Line 27: | Line 32: | ||
Uncomment the ''; | Uncomment the ''; | ||
- | | + | <code ini> |
+ | date.timezone = America/ | ||
+ | </ | ||
Then reload PHP to make the change take effect. | Then reload PHP to make the change take effect. | ||
Line 37: | Line 44: | ||
The PHP site lists the [[http:// | The PHP site lists the [[http:// | ||
- | For example, if you live in Chicago, replace GMT with " | + | For example, if you live in Chicago, replace GMT with " |
tips/timezone.txt · Last modified: 2022-06-22 04:02 by 96.241.231.169