PITS /
01449: Cookbook/ChangeTimeFormat needs update
Summary: Cookbook/ChangeTimeFormat needs update
Created: 2019-12-28 23:51
Status: Closed - updated
Category: Documentation
Assigned:
Priority:
Version:
PHP: 5.1 - 7.1.26
Description:
The page
https://pmwiki.org/wiki/Cookbook/ChangeTimeFormat
recommends using
putenv("TZ=EST5EDT");
But that causes problems in PHP 7.1.26 .
The page
https://pmwiki.org/wiki/PmWiki/InitialSetupTasks
on the contrary, says to use the above, only
# if you run PHP 5.0 or older
For PHP 5.1 or newer, the InitialSetupTasks page says to use
# date_default_timezone_set('America/New_York');
Also, where do we find a list of the time zones as depicted in the newer format?
(eg 'America/New_York')
A link must be given.
( I've found this... https://www.php.net/manual/en/timezones.php )
nikos? December 29, 2019, at 12:10 AM
Might be duplicate of PITS.01227.
nikos? December 29, 2019, at 12:15 AM
Thank you for reviewing and reporting. I've updated both InitialSetupTasks and ChangeTimeFormat. --Petko December 29, 2019, at 07:29 AM