Recent Topics

1 Jun 07, 2010 00:55    

My b2evolution Version: 3.3.3

Got this several times recently on my blog pages:

Warning: Unknown: 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/New_York' for 'EDT/-4.0/DST' instead in /blog/htsrv/message_send.php on line 200

I don't recall making any changes to any files or date/time settings in the admin area.

My host used this quick fix:
"For some reason the blog is not reading the date.time I cheated and set the default in blog/inc/sessions/model/_session.class.php by adding the following to the top of the file:

It works but its a band aid for now."

Any thoughts as to what caused this, and what would be a better solution? Perhaps I did accidentally change something in the admin area, but I don't know what that would have been.... thoughts?

2 Jun 07, 2010 02:35

It's a server misconfiguration. You need to add the following line to php.ini

date.timezone = "America/New_York"

3 Jun 07, 2010 05:14

They say they won't add that to a global file. Any other suggestions? Should I just keep adding <?php
?> to the tops of all my offending files?

4 Jun 07, 2010 06:08

They say they won't add that to a global file. Any other suggestions?

Try to add the following in .htaccess file

SetEnv TZ America/New_York

If I were you, I would leave this hosting asap. Sorry to say that, but as I can see from your posts you happened to move to a crappy hosting. Any normal hosting company allows custom php.ini and .htaccess files.

5 Jun 08, 2010 17:44

I apologise that, I can help nothing. But it is assured, that you will find the correct decision. Do not despair.

6 Jun 09, 2010 17:55

Thanks folks... I have brought your input up to my host.. not so much the "crappy" part, b/c they've actually been quite responsive and helpful thus far. Anyway, I will post the final outcome when this is solved... thanks again!

FYI, the reason I went with this particular host is because of their reputation as experts with ZenCart and PCI compliance, which is a major plus for me since my previous host was causing me PCI non-compliance fees, and they are a rock solid host (a backbone no less): Hurricane Electric, whom I still highly recommend, but they don't really cater to small ecommerce sites like mine... if I could afford a dedicated server with them, then that would've been a different story. Since moving to my new host, Camelot Hosting, I've become PCI compliant, which saves my company over $300/year, not to mention their wonderful customer service as it relates to ZenCart.

With that said, I don't know why they can't add that line of code to the php.ini file... perhaps since it is a global file it effects their customers in other timezones?

7 Jun 01, 2011 19:05

I Had the same problem and did add the code:

date.timezone = "America/New_York"

to my php.ini and it did work succesfully!
Thank's for your help!!!

Form is loading...