classes/Events/API/Util.php
public static function compareTimezonesByOffset($a, $b) {

		$dta = new DateTime(null, new DateTimeZone($a));
		$dtb = new DateTime(null, new DateTimeZone($b));

		if ($dta->getOffset() == $dtb->getOffset()) {
			return (strcmp($a, $b) < 0) ? -1 : 1;
		}
		return ($dta->getOffset() < $dtb->getOffset()) ? -1 : 1;
	}
public static function compareTimezonesByOffset($a, $b) {

		$dta = new DateTime(null, new DateTimeZone($a));
		$dtb = new DateTime(null, new DateTimeZone($b));

		if ($dta->getOffset() == $dtb->getOffset()) {
			return (strcmp($a, $b) < 0) ? -1 : 1;
		}
		return ($dta->getOffset() < $dtb->getOffset()) ? -1 : 1;
	}
public static function compareTimezonesByOffset ( $ a , $ b ) { $ dta = new DateTime ( null , new DateTimeZone ( $ a ) ) ; $ dtb = new DateTime ( null , new DateTimeZone ( $ b ) ) ; if ( $ dta -> getOffset ( ) == $ dtb -> getOffset ( ) ) { return ( strcmp ( $ a , $ b ) < 0 ) ? - 1 : 1 ; } return ( $ dta -> getOffset ( ) < $ dtb -> getOffset ( ) ) ? - 1 : 1 ; }
Sorting callback function for comparing timezones by offset
@return int
Sorting callback function for comparing timezones by offset