Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

strftime problem


Recommended Posts

I have this problem with my oscommerce v2.2rc2

 

Warning: strftime() [function.strftime]: 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 'EST/-5.0/no DST' instead in /path_to_admin_directory/file_manager.php on line 198

 

Any solution?

Link to comment
Share on other sites

First rename your shop admin directory and apply the security patches to secure your site if you have not already done so (more info on this can be found via my profile)

 

Secondly delete admin/file_manager.php and remove the option from the tools box as it is a known security hole.

 

If you have access to php.ini try adding

 

a php.ini at my installation's root with the following line and it worked fine.

 

date.timezone=America/New_York

 

Obviously use whatever time zone you want.

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...