I use the date() function to get day, month and year.
$year = date(y);
$month = date(m);
$day = date(d);
But my hosting is in another place where I am, so I need to add 11 hours.
could you tell me how can I do that?
thanks
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.
Either do
to add 11 hours or create a DateTime object and change it’s timezone where needed
or simply set the appropriate timezone with