Reputation: 620
I am using php date function to get date and time. But time information that I got is incorrect. What can I do for this problem solution? Thanks..
php code :
$d = date('Y-m-d h:i:s');
Upvotes: 1
Views: 4433
Reputation: 6559
Try using the examples shown here: http://php.net/manual/en/function.date.php Careful that 'h' should be capital.
This should fix it but if still doesn't work, is your computers time correct?
Upvotes: 2