Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[HELP] Timezone/date ERROR


n4is3n

Recommended Posts

Dear All, i have this error when i try to install osCommerce on Nginx and PHP 5.3.

 

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 'Asia/Jakarta' for 'WIT/7.0/no DST' instead in /var/www/nginx-default/kaozgamer.com/toko/includes/languages/english.php on line 317

 

Please help...

 

thanks before...

Link to comment
Share on other sites

Dear All, i have this error when i try to install osCommerce on Nginx and PHP 5.3.

 

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 'Asia/Jakarta' for 'WIT/7.0/no DST' instead in /var/www/nginx-default/kaozgamer.com/toko/includes/languages/english.php on line 317

As far as I can remember it is best to set the default time zone in your php.ini:

 

date_default_timezone_set('Asia/Jakarta');

 

But I assume you can put this somewhere in your includes/application_top.php also.

Link to comment
Share on other sites

As far as I can remember it is best to set the default time zone in your php.ini:

 

date_default_timezone_set('Asia/Jakarta');

 

But I assume you can put this somewhere in your includes/application_top.php also.

 

 

i put that code in includes/application_top.php, and it work!

 

Thanks so much... :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...