public static function toTz($pDate, $pTimezone = NULL)
    {
    	if ($pTimezone === NULL) {
    		$pTimezone = Agl::app()->getConfig('main/global/timezone');
    	}

    	$time_object = new DateTime($pDate, new DateTimeZone(self::DEFAULT_TZ));
	    $time_object->setTimezone(new DateTimeZone($pTimezone));
	    return $time_object->format(self::DATE_FORMAT);
    }