I am android developer and working one API with PHP to use in my android application. I do not know PHP language. I have query in which I want update datetime field of database. its working fine with qu\_time=Now() but I want set my timezone to field qu\_time. My current query is like below

```
$results = mysqli_query($mysqli,"UPDATE tbl_quotes SET qu_status=1, qu_like=$randomnumberlike,qu_share=$randomnumbershare,qu_favorite=0, qu_time=Now() where _quid=$x ORDER BY _quid ASC ");

```

I have got one function which is converting time to my timezone but I have no idea how can I use it. That function is like below

```
function getDatetimeNow() {
    $tz_object = new DateTimeZone('Asia/Kolkata');
    //date_default_timezone_set('Brazil/East');

 $datetime = new DateTime();
    $datetime->setTimezone($tz_object);
    return $datetime->format('Y-m-d H:i:s');
    }

```

Anyone can please suggest me how can I use it with my above query or there any other way to set my timezone with update query ?

Thanks