TimeZone related

Posted 1 month ago by jaman201152

I have used

$date = new \DateTime();

Then I get datetime like $date=2019-05-08 07:47:20 pm

but I need 2019-05-08 01:47:20 pm

because of my GMT+6

How can I get in this situation?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.