How to convert current timezone date and time to gmtdate and time ?
Here I am adding some hours for todays date and wants to convert in gmtdate to filter order colleciton
//MagentoFrameworkStdlibDateTimeTimezoneInterface
echo $toDay = $this->timezone->date()->format('Y-m-d H:i');
$fromTime = strtotime($toDay);
$toTime = $fromTime + 3600;
This below code gives current timezone time by adding one hour but I want to convert in gmt date and time
echo date('Y-m-d h:i', $toTime);