text: /* module-key = 'com.atlassian.jira.jira-tzdetect-plugin:tzdetect-lib', location = 'js/detect_timezone.js' */
  var jstz=(function(){var C="s",D=function(H){var I=-H.getTimezoneOffset();return(I!==null?I:0)},A=function(){return D(new Date(2010,0,1,0,0,0,0))},B=function(){return D(new Date(2010,5,1,0,0,0,0))},F=function(I){var J=((I.getMonth()>5?B():A())),H=D(I);return(J-H)!==0},G=function(){var H=A(),I=B(),J=A()-B();if(J<0){return H+",1"}else{if(J>0){return I+",1,"+C}}return H+",0"},E=function(){var H=G();return new jstz.TimeZone(jstz.olson.timezones[H])};return{determine_timezone:E,date_is_dst:F}}());jstz.TimeZone=(function(){var F=null,C=null,D=null,A=function(){return F},G=function(){return C},E=function(){return D},B=function(){var J=jstz.olson.ambiguity_list[F],L=J.length,K=0,M=J[0];for(;K<L;K+=1){M=J[K];if(jstz.date_is_dst(jstz.olson.dst_start_dates[M])){F=M;return }}},H=function(){return typeof (jstz.olson.ambiguity_list[F])!=="undefined"},I=function(J){D=J[0];F=J[1];C=J[2];if(H()){B()}};I.prototype={constructor:jstz.TimeZone,name:A,dst:G,offset:E};return I}());jstz.olson={};jstz.olson.timezones=(function(){return{"-720,0":["-12:00","Etc/GMT+12",false],"-660,0":["-11:00","Pacific/Pago_Pago",false],"-600,1":["-11:00","America/Adak",true],"-600,0":["-10:00","Pacific/Honolulu",false],"-570,0":["-09:30","Pacific/Marquesas",false],"-540,0":["-09:00","Pacific/Gambier",false],"-540,1":["-09:00","America/Anchorage",true],"-480,1":["-08:00","America/Los_Angeles",true],"-480,0":["-08:00","Pacific/Pitcairn",false],"-420,0":["-07:00","America/Phoenix",false],"-420,1":["-07:00","America/Denver",true],"-360,0":["-06:00","America/Guatemala",false],"-360,1":["-06:00","America/Chicago",true],"-360,1,s":["-06:00","Pacific/Easter",true],"-300,0":["-05:00","America/Bogota",false],"-300,1":["-05:00","America/New_York",true],"-270,0":["-04:30","America/Caracas",false],"-240,1":["-04:00","America/Halifax",true],"-240,0":["-04:00","America/Santo_Domingo",false],"-240,1,s":["-04:00","America/Asuncion",true],"-210,1":["-03:30","America/St_Johns",true],"-180,1":["-03:00","America/Godthab",true],"-180,0":["-03:00","America/Argentina/Buenos_Aires",false],"-180,1,s":["-03:00","America/Montevideo",true],"-120,0":["-02:00","America/Noronha",false],"-120,1":["-02:00","Etc/GMT+2",true],"-60,1":["-01:00","Atlantic/Azores",true],"-60,0":["-01:00","Atlantic/Cape_Verde",false],"0,0":["00:00","Etc/UTC",false],"0,1":["00:00","Europe/London",true],"60,1":["+01:00","Europe/Berlin",true],"60,0":["+01:00","Africa/Lagos",false],"60,1,s":["+01:00","Africa/Windhoek",true],"120,1":["+02:00","Asia/Beirut",true],"120,0":["+02:00","Africa/Johannesburg",false],"180,1":["+03:00","Europe/Moscow",true],"180,0":["+03:00","Asia/Baghdad",false],"210,1":["+03:30","Asia/Tehran",true],"240,0":["+04:00","Asia/Dubai",false],"240,1":["+04:00","Asia/Yerevan",true],"270,0":["+04:30","Asia/Kabul",false],"300,1":["+05:00","Asia/Yekaterinburg",true],"300,0":["+05:00","Asia/Karachi",false],"330,0":["+05:30","Asia/Kolkata",false],"345,0":["+05:45","Asia/Kathmandu",false],"360,0":["+06:00","Asia/Dhaka",false],"360,1":["+06:00","Asia/Omsk",true],"390,0":["+06:30","Asia/Rangoon",false],"420,1":["+07:00","Asia/Krasnoyarsk",true],"420,0":["+07:00","Asia/Jakarta",false],"480,0":["+08:00","Asia/Shanghai",false],"480,1":["+08:00","Asia/Irkutsk",true],"525,0":["+08:45","Australia/Eucla",true],"525,1,s":["+08:45","Australia/Eucla",true],"540,1":["+09:00","Asia/Yakutsk",true],"540,0":["+09:00","Asia/Tokyo",false],"570,0":["+09:30","Australia/Darwin",false],"570,1,s":["+09:30","Australia/Adelaide",true],"600,0":["+10:00","Australia/Brisbane",false],"600,1":["+10:00","Asia/Vladivostok",true],"600,1,s":["+10:00","Australia/Sydney",true],"630,1,s":["+10:30","Australia/Lord_Howe",true],"660,1":["+11:00","Asia/Kamchatka",true],"660,0":["+11:00","Pacific/Noumea",false],"690,0":["+11:30","Pacific/Norfolk",false],"720,1,s":["+12:00","Pacific/Auckland",true],"720,0":["+12:00","Pacific/Tarawa",false],"765,1,s":["+12:45","Pacific/Chatham",true],"780,0":["+13:00","Pacific/Tongatapu",false],"780,1,s":["+13:00","Pacific/Apia",true],"840,0":["+14:00","Pacific/Kiritimati",false]}}());jstz.olson.dst_start_dates=(function(){return{"America/Denver":new Date(2011,2,13,3,0,0,0),"America/Mazatlan":new Date(2011,3,3,3,0,0,0),"America/Chicago":new Date(2011,2,13,3,0,0,0),"America/Mexico_City":new Date(2011,3,3,3,0,0,0),"Atlantic/Stanley":new Date(2011,8,4,7,0,0,0),"America/Asuncion":new Date(2011,9,2,3,0,0,0),"America/Santiago":new Date(2011,9,9,3,0,0,0),"America/Campo_Grande":new Date(2011,9,16,5,0,0,0),"America/Montevideo":new Date(2011,9,2,3,0,0,0),"America/Sao_Paulo":new Date(2011,9,16,5,0,0,0),"America/Los_Angeles":new Date(2011,2,13,8,0,0,0),"America/Santa_Isabel":new Date(2011,3,5,8,0,0,0),"America/Havana":new Date(2011,2,13,2,0,0,0),"America/New_York":new Date(2011,2,13,7,0,0,0),"Asia/Gaza":new Date(2011,2,26,23,0,0,0),"Asia/Beirut":new Date(2011,2,27,1,0,0,0),"Europe/Minsk":new Date(2011,2,27,2,0,0,0),"Europe/Helsinki":new Date(2011,2,27,4,0,0,0),"Europe/Istanbul":new Date(2011,2,28,5,0,0,0),"Asia/Damascus":new Date(2011,3,1,2,0,0,0),"Asia/Jerusalem":new Date(2011,3,1,6,0,0,0),"Africa/Cairo":new Date(2010,3,30,4,0,0,0),"Asia/Yerevan":new Date(2011,2,27,4,0,0,0),"Asia/Baku":new Date(2011,2,27,8,0,0,0),"Pacific/Auckland":new Date(2011,8,26,7,0,0,0),"Pacific/Fiji":new Date(2010,11,29,23,0,0,0),"America/Halifax":new Date(2011,2,13,6,0,0,0),"America/Goose_Bay":new Date(2011,2,13,2,1,0,0),"America/Miquelon":new Date(2011,2,13,5,0,0,0),"America/Godthab":new Date(2011,2,27,1,0,0,0)}}());jstz.olson.ambiguity_list={"America/Denver":["America/Denver","America/Mazatlan"],"America/Chicago":["America/Chicago","America/Mexico_City"],"America/Asuncion":["Atlantic/Stanley","America/Asuncion","America/Santiago","America/Campo_Grande"],"America/Montevideo":["America/Montevideo","America/Sao_Paulo"],"Asia/Beirut":["Asia/Gaza","Asia/Beirut","Europe/Minsk","Europe/Helsinki","Europe/Istanbul","Asia/Damascus","Asia/Jerusalem","Africa/Cairo"],"Asia/Yerevan":["Asia/Yerevan","Asia/Baku"],"Pacific/Auckland":["Pacific/Auckland","Pacific/Fiji"],"America/Los_Angeles":["America/Los_Angeles","America/Santa_Isabel"],"America/New_York":["America/Havana","America/New_York"],"America/Halifax":["America/Goose_Bay","America/Halifax"],"America/Godthab":["America/Miquelon","America/Godthab"]};
  /* module-key = 'com.atlassian.jira.jira-tzdetect-plugin:tzdetect-lib', location = 'js/tzdetect-banner.js' */
  (function(C){C(function(){var D=C("#timezoneDiffBanner");if(D.length){return }if(location.hash.indexOf("openTzPrefs")==-1){B()}});function B(){var K="tzdetect.pref.",R=AJS.params[K+"tzid"],L=AJS.params[K+"tzname"],M=AJS.params[K+"tzoffset"],Q=AJS.params[K+"tzdst"],J=AJS.params[K+"nothanks"];if(!R){return }var G=jstz.determine_timezone(),H=G.name(),P="(GMT"+G.offset()+")",E=G.dst();if(H=="Etc/UTC"){H="Etc/GMT"}if(P=="(GMT00:00)"){P="(GMT+00:00)"}if(H!=R&&H!=J&&(P!=M||E!=Q)){AJS.log("TZDetect: Detected timezone as "+P+" "+H+", user prefs set to "+M+" "+R);var I=contextPath+"/secure/ViewProfile.jspa";var N=I+"#openTzPrefs";var O=contextPath+"/rest/tzdetect/1";var D=AJS.format("Your computer\'\'s time zone does not appear to match your user setting of {0}. {1}Click here{2} to update your settings. Alternatively, {3}hide this message{4}.",L,"<a class='tz-yes' href='"+N+"'>","</a>","<a class='tz-no' href='#hide'>","</a>");var F=AJS.$('<div class="global-warning" id="timezoneDiffBanner"/>').html(D);F.find(".tz-no").click(function(S){S.preventDefault();var T=JIRA.SmartAjax.makeRequest({url:O+"/nothanks",type:"POST",data:H,contentType:"application/json",complete:function(W,U,V){if(U!="abort"){if(V.successful){A(F)}}}})});F.find(".tz-yes").click(function(S){S.preventDefault();var T=JIRA.SmartAjax.makeRequest({url:O+"/update",type:"POST",data:H,contentType:"application/json",complete:function(Y,U,V){if(U!="abort"){if(V.successful){A(F);if(JIRA.Messages){var X=V.data;var W=AJS.format("Your default time zone has been set to {0}.",X.gmtOffset+" "+X.city);JIRA.Messages.showSuccessMsg(W,{closeable:true})}}}}})});F.prependTo("body")}}function A(D){D.slideUp("fast",function(){D.remove()})}})(AJS.$);
  