FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Date related Warnings View next topic
View previous topic
Post new topicReply to topic
Author Message
Cosmetic



Joined: 11 Mar 2014
Posts: 1

PostPosted: Tue Mar 11, 2014 7:44 pm Reply with quoteBack to top

We have implemented the RSS2HTML script on our server but the script is triggering multiple date related warnings;

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings.
Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings.

My previous post on this subject was removed and the posting account was blocked without any explanation, also support do not respond to emails on this subject.

Is there a reason why you do not want to discuss this?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Wed Mar 12, 2014 8:09 am Reply with quoteBack to top

If the name you previously registered was close to Cosmetic or something similar, your previous account and thread probably got deleted unintentionally as a potential spam thread.

With regards to the errors you're seeing about the timezone settings, it's indicating that you have the script configured to rely on the local server's timezone settings and that isn't particularly safe.

So, if you would, please go to this section of the script:

//
// Timezone - If your server is not in the same timezone as you are the timezone
// of the times and dates produced in the above from can be controlled with the
// below code. Just uncomment the following line and change to the correct
// zonename. A full list is available here, http://www.php.net/manual/en/timezones.php
// You town.city probably isn't listed, so look for a neighboring major city
// putenv("TZ=America/New_York");

and remove the comments on the last line. So, change this line:

// putenv("TZ=America/New_York");

to this:

putenv("TZ=America/New_York")

Then save and re-publish the script and let's see if that error goes away.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme