I have this value +05:00
this is my code
date_default_timezone_set('UTC');
echo date('H:i A P');
how can i set P to be +05:00
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.
Pis the difference between the current timezone and UTC. If you set the timezone to UTC, you’ll naturally have a difference of zero. Try:Note that in most cases, you don’t want a fixed difference from UTC, but instead the local timezone in a country or region. You should pick your local timezone (for example, mine is
Europe/Berlin) out of the list of supported timezones, and configure that in your application orphp.ini.