function date_default_timezone_get () {
    // http://kevin.vanzonneveld.net
    // +   original by: Brett Zamir
    // -    depends on: timezone_abbreviations_list
    // %        note 1: Uses global: php_js to store the default timezone
    // *     example 1: date_default_timezone_get();
    // *     returns 1: 'unknown';

    var tal = {}, abbr = '', i = 0, today = new Date();

	if (this.php_js && this.php_js.default_timezone) {
		return this.php_js.default_timezone;
	}
	tal = timezone_abbreviations_list();
	for (abbr in tal) {
		for (i=0; i < tal[abbr].length; i++) {
			if (tal[abbr][i].offset === -today.getTimezoneOffset()*60) {
				return tal[abbr][i].timezone_id;
			}
		}
	}
	return 'UTC';
}
@@ -398,12 +398,24 @@
 p_js
- && 
+) %7B%0A        if (
 this
@@ -445,50 +445,410 @@
 e) %7B
-%0A%09%09return this.php_js.default_timezone;%0A%09%7D
+ // set by date_default_timezone_set%0A            return this.php_js.default_timezone;%0A        %7D%0A        if (this.php_js.ENV && this.php_js.ENV%5B'TZ'%5D) %7B // getenv%0A            return this.php_js.ENV%5B'TZ'%5D;%0A        %7D%0A        if (this.php_js.ini && this.php_js.ini%5B'date.timezone'%5D) %7B // e.g., if set by init_set()%0A            return this.php_js.ini%5B'date.timezone'%5D;%0A        %7D%0A    %7D%0A    // Get from system
 %0A%09ta

Allow for timezone to be on ini or ENV for date_default_timezone_get()