rem: var patterns = global[type.toUpperCase() + "DATEFORMATS"]; if (!patterns || patterns.constructor !== Array) { return; 
add: var patterns; if (type === "short") { patterns = [SHORTDATEFORMAT, "yyyy/MM/dd HH:mm", "yyyy.MM.dd, HH:mm", "d. MMMM, HH:mm", "MMMM d, HH:mm", "d. MMM, HH:mm", "MMM d, HH:mm", "EEE, d. MMM, HH:mm", "EEE MMM d, HH:mm", "EEE, HH:mm", "EE, HH:mm", "HH:mm"]; } else if (type === "long") { patterns = [LONGDATEFORMAT, "EEEE, MMMM dd, yyyy, HH:mm", "EE, d. MMM. yyyy, HH:mm", "EE MMM dd, yyyy, HH:mm", "EE yyyy-MM-dd HH:mm", "yyyy-MM-dd HH:mm", "d. MMMM yyyy, HH:mm", "MMMM d, yyyy, HH:mm", "d. MMM yyyy, HH:mm", "MMM d, yyyy, HH:mm"]; 
context: function getDateFormats(type, language) {   var patterns = global[type.toUpperCase() + "DATEFORMATS"];   if (!patterns || patterns.constructor !== Array) {      return;   }   var result = [], sdf;   var locale = getLocale(language);   var now = new Date;   for each (var pattern in patterns) {      sdf = new java.text.SimpleDateFormat(pattern, locale);      result.push([encodeForm(pattern), sdf.format(now)]);   }   return result;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/4b8d6a823bd5d00f71cf836f5f540553b9fdd13f/Global.js/buggy/code/Global/Global.js