Jump to content

Issue with timezone settings


drift2

Recommended Posts

I'm getting the following errors and I all ready added date.timezone = "America/New_York" this to the php in plesk.

 

 

Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /var/www/vhosts/drift2.com/billing.drift2.com/includes/classes/WHMCS/Domains.php:0 Stack trace: #0 /var/www/vhosts/drift2.com/billing.drift2.com/includes/classes/WHMCS/Domains.php(0): DateTime->__construct() #1 /var/www/vhosts/drift2.com/billing.drift2.com/clientarea.php(0): WHMCS\Domains::getRenewableDomains() #2 {main} Next exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of th in /var/www/vhosts/drift2.com/billing.drift2.com/includes/classes/WHMCS/Terminus.php on line 0

 

- - - Updated - - -

 

Never mind some reason the one thing I was trying for hours finally worked date.timezone = "America/New_York" in php.in file

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated