close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PHP error on email from Unviersal email - re: Warning: date() [function.date]:

Thread began 3/10/2014 7:12 pm by EmmaMorris | Last modified 3/11/2014 9:46 am by Jason Byrnes | 512 views | 2 replies |

EmmaMorris

PHP error on email from Unviersal email - re: Warning: date() [function.date]:

This just started when my web host upgraded their servers. Coming up with the following errors in emails from most of my sites.

Warning: date() [function.date]: 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 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/*****/public_html/webassist/email/templates/Blank.php on line 34
3:25 AM PDT

It repeats this error several times. I know the function is a deprecated function but dont know how to fix it. I saw the post from 2010 but this seems to be a different file. This error is pointing to a file in the templates directory in all my sites that are having problems. They have been working correctly for several years.

Do I need to totally recreate the pages. I would rather just edit the existing ones if that is possible.

Any help would be greatly appreciated.
Thanks.
Gary.

Sign in to reply to this post

EmmaMorris

Figured it out.

I just added

<?php date_default_timezone_set('America/Los_Angeles'); ?>

to the top and it seems to be ok now.
Thanks anyway.

Sign in to reply to this post

Jason ByrnesWebAssist

Yeah, that is one way to fix the error.

the other is to contact the host and have them update the php.ini file to set the date.timezone setting.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...