ForumPostAssistant / FPA

The Forum Post Assistant (FPA) script has been developed to assist Joomla!® forum posters to be able to post relevant system, instance, PHP and troubleshooting information directly in to a pre-formatted forum post. This will save a few hours of posting back and forth, asking for, and explaining how to acquire useful information in order for other forum users to help troubleshoot a problem.
https://forumpostassistant.github.io/docs/
GNU General Public License v2.0
25 stars 15 forks source link

Fatal error: Uncaught Exception when the timezone is 'America/New York' #111

Closed toivo closed 3 years ago

toivo commented 3 years ago

FPA v1.6.2 reports an Uncaught Exception when the timezone is 'America/New York', reported in the forum topic https://forum.joomla.org/viewtopic.php?f=710&t=985083#p3625595

Fatal error: Uncaught Exception: DateTime::__construct(): Invalid date.timezone value 'America/New York', we selected the timezone 'UTC' for now. in /home/vetspetsandlaugh/public_html/fpa-en.php:189 Stack trace: #0 /home/vetspetsandlaugh/public_html/fpa-en.php(189): DateTime->__construct('01-03-2021') #1 {main} thrown in /home/vetspetsandlaugh/public_html/fpa-en.php on line 189

wojsmol commented 3 years ago

@toivo This is coused by wrong php configuration on the server. Instead of America/New York time zone should be set to America/New_York with underscore - ref https://www.php.net/manual/en/timezones.america.php.

toivo commented 3 years ago

@wojsmol Thank you, I will forward the information to the member of the forum who reported the message and then close this issue.

toivo commented 3 years ago

Info added to the forum topic.