I tried to obtain the current date and time using
$date = new Zend_Date();
echo $date;
this gives me the correct date, but the time is incorrect.
It should be Jul 13, 2012 3:14:42 PM, but it displays Jul 13, 2012 9:32:42 AM.
Why is this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As your comment implies that you set timezone to
ASIA. From the date/time you posted in your question, I guess you need to set it to.Give it a try or set it directly in your php.ini.