Monday, July 16, 2012

Oscommerce Error Warning: strftime() [function.strftime]

OScommerce Error 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 'Asia/Jakarta' for 'WIT/7.0/no DST' instead in

 

Penyebab:

OScommerce tidak compatible dengan versi PHP 5.3.x

 

Cara mengatasi:

 

Buka files /includes/application_top.php dan admin/includes/application_top.php

Cari kalimat: // start the timer for the page parse time log

tambahkan sebelum kalimat tersebut:

date_default_timezone_set('Asia/Jakarta');

No comments:

Cara upload dengan git tanpa menyertakan folder tertentu

  Untuk mengupload kode menggunakan Git tanpa menyertakan folder tertentu, Anda perlu menggunakan file khusus bernama .gitignore . File ini...