I'm using:
date("d-m-Y h:i:s")
in my controller, but the time is later than actual time. For example, now in my country it's 01:02, date return 20-06-2015 01:06:38.
How to fix it?
I'm using:
date("d-m-Y h:i:s")
in my controller, but the time is later than actual time. For example, now in my country it's 01:02, date return 20-06-2015 01:06:38.
How to fix it?
1st Step : Go to
config/config.php
and write2nd step: now you can use your time
Your time zones are probably off, this will help you.
http://php.net/manual/en/function.date-default-timezone-set.php
Place timezone on the top of the config.php file above base_url
date_default_timezone_set('Europe/Warsaw');
Then refresh server
If you can change the hooks settings in your config file from TRUE to FALSE that should help with your issue.
Except if you have a very important need for the hooks to be enabled you should be very fine this way.
change to:
I hope this helps you.