public function validateCache($xml)
    {
        $tz = date_default_timezone_get();
        date_default_timezone_set('UTC');

        $xml = @new \SimpleXMLElement($xml);
        $dt = (int) strtotime($xml->cachedUntil);
        $time = time();

        date_default_timezone_set($tz);

        return (bool) ($dt > $time);
    }
public function validateCache($xml)
    {
        $tz = date_default_timezone_get();
        date_default_timezone_set('UTC');

        $xml = @new \SimpleXMLElement($xml);
        $dt = (int) strtotime($xml->cachedUntil);
        $time = time();

        date_default_timezone_set($tz);

        return (bool) ($dt > $time);
    }
public function validateCache ( $ xml ) { $ tz = date_default_timezone_get ( ) ; date_default_timezone_set ( 'UTC' ) ; $ xml = @ new \ SimpleXMLElement ( $ xml ) ; $ dt = ( int ) strtotime ( $ xml -> cachedUntil ) ; $ time = time ( ) ; date_default_timezone_set ( $ tz ) ; return ( bool ) ( $ dt > $ time ) ; }
Validate the cached xml if it is still valid. This contains a name hack
to work arround EVE API giving wrong cachedUntil values

@param string $xml
@return boolean
Validate the cached xml if it is still valid . This contains a name hack to work arround EVE API giving wrong cachedUntil values