close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Urgent help needed please - Warning: date() [function.date]: in mail.php

Thread began 10/13/2009 3:31 pm by rob75685 | Last modified 6/22/2010 10:04 am by Jason Byrnes | 2212 views | 4 replies |

rob75685

Urgent help needed please - Warning: date() [function.date]: in mail.php

hi there

A contact page I've created using Universal Email tested fine on my server, but on posting the page live on another server it comes up with the following errors:

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 'Europe/London' for 'BST/1.0/DST' instead in /Library/WebServer/Documents/dev/WA_Universal_Email/mail_PHP.php on line 169

Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/dev/WA_Universal_Email/mail_PHP.php:169) in /Library/WebServer/Documents/dev/customersatisfaction.php on line 48


Is it related to timestamp differences ?....

Thanks for your help

Sign in to reply to this post

Ray BorduinWebAssist

This means you are missing the default timezone setting in your php.ini.

You can either set it on the top of the page:
function.date-default-timezone-set.php

or add it to your php.ini:
viewarticle.php?aid=100&pid=3&uid=1

Sign in to reply to this post

rob75685

Thanks very much for the quick response Ray

Sign in to reply to this post

sindhu_happy85409697

Date function

Give me suggestions

Sign in to reply to this post

Jason ByrnesWebAssist

can you provide more details on what you would like suggestions to do?

If you need more information on the php date function, see the php.net date manula page here:
function.date.php

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...