I have a problem to set my date format using PHPExcel
on Codeigniter
I already have controller and model and view that you can access
Model: http://sistempintar.com/file/LingkunganModel.txt
Controller: http://sistempintar.com/file/Lingkungan.txt
View: http://sistempintar.com/file/form.txt
I make a preview before import to a database, but an error that says
"A PHP Error was encountered Severity: Warning
Message: date_create(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.
Filename: Shared/Date.php
Line Number: 167
Backtrace:
File: /home/u4502442/public_html/sistempintar/demo/proyek/application/third_party/PHPExcel/PHPExcel/Shared/Date.php Line: 167 Function: date_create
File: /home/u4502442/public_html/sistempintar/demo/proyek/application/third_party/PHPExcel/PHPExcel/Style/NumberFormat.php Line: 454 Function: ExcelToPHPObject
File: /home/u4502442/public_html/sistempintar/demo/proyek/application/third_party/PHPExcel/PHPExcel/Style/NumberFormat.php Line: 607 Function: _formatAsDate
File: /home/u4502442/public_html/sistempintar/demo/proyek/application/third_party/PHPExcel/PHPExcel/Worksheet.php Line: 2493 Function: toFormattedString
File: /home/u4502442/public_html/sistempintar/demo/proyek/application/third_party/PHPExcel/PHPExcel/Worksheet.php Line: 2556 Function: rangeToArray
File: /home/u4502442/public_html/sistempintar/demo/proyek/application/controllers/Lingkungan.php Line: 51 Function: toArray
File: /home/u4502442/public_html/sistempintar/demo/proyek/index.php Line: 315 Function: require_once"
and this is my date.php: http://sistempintar.com/file/date.txt
this is the picture that shows error :
http://sistempintar.com/file/format_database.png
I don't' know what is wrong, please help