public static function timestampToGmt($time = null)
    {
        $time = $time ?? time();
        $dateTime = new \DateTime();
        $dateTime->setTimestamp($time)->modify('+2 hours');

        return $dateTime->format('d/m/Y H:i:s');
    }
public static function timestampToGmt($time = null)
    {
        $time = $time ?? time();
        $dateTime = new \DateTime();
        $dateTime->setTimestamp($time)->modify('+2 hours');

        return $dateTime->format('d/m/Y H:i:s');
    }
public static function timestampToGmt ( $ time = null ) { $ time = $ time ?? time ( ) ; $ dateTime = new \ DateTime ( ) ; $ dateTime -> setTimestamp ( $ time ) -> modify ( '+2 hours' ) ; return $ dateTime -> format ( 'd/m/Y H:i:s' ) ; }
Converts a timestamp to GMT.

@param int|null $time Unix timestamp

@since 3.0.0

@return string
Converts a timestamp to GMT .