Anonymous avatar Anonymous committed 996c809

Minor updates to zoneinfo names and what is displayed when printing.

Comments (0)

Files changed (2)

detect_timezone.js

 	'-240,1,s' : new TimeZone('-04:00','America/Asuncion', true),
 	'-210,1'   : new TimeZone('-03:30','America/St_Johns', true),
 	'-180,1'   : new TimeZone('-03:00','America/Godthab', true),
-	'-180,0'   : new TimeZone('-03:00','America/Argentina/Buenos_Aires,', false),
+	'-180,0'   : new TimeZone('-03:00','America/Argentina/Buenos_Aires', false),
 	'-180,1,s' : new TimeZone('-03:00','America/Montevideo', true),
 	'-120,0'   : new TimeZone('-02:00','America/Noronha', false),
 	'-120,1'   : new TimeZone('-02:00','Etc/GMT+2', true),
 	'-60,1'    : new TimeZone('-01:00','Atlantic/Azores', true),
 	'-60,0'    : new TimeZone('-01:00','Atlantic/Cape_Verde', false),
-	'0,0'      : new TimeZone('00:00','Africa/Casablanca', false),
+	'0,0'      : new TimeZone('00:00','Etc/UTC', false),
 	'0,1'      : new TimeZone('00:00','Europe/London', true),
 	'60,1'     : new TimeZone('+01:00','Europe/Berlin', true),
 	'60,0'     : new TimeZone('+01:00','Africa/Lagos', false),
 TimeZone.prototype.display = function() {
 	this.ambiguity_check();
 	var response_text = '<b>UTC-offset</b>: ' + this.utc_offset + '<br/>';
-	response_text += '<b>Olson database name</b>: ' + this.olson_tz + '<br/>';
-	response_text += '<b>Daylight Savings</b>: ' + (this.uses_dst ? 'yes' : 'no') + '<br/>';
+	response_text += '<b>Zoneinfo key</b>: ' + this.olson_tz + '<br/>';
+	response_text += '<b>Zone uses DST</b>: ' + (this.uses_dst ? 'yes' : 'no') + '<br/>';
 	
 	return response_text;
 }
   }
   
   a:hover {
-    border-color: #000;
+    border-color: #fff;
   }
   </style>
   <script type="text/javascript" src='detect_timezone.js'></script>
 
 <body>
 
-<h1>Automatic Timezone Detection Using JavaScript</h3>
+<h1>Automatic Timezone Detection Using JavaScript</h1>
 <p class="info">This script is open source and hosted as <a href="https://bitbucket.org/pellepim/jstimezonedetect"/>jsTimezoneDetect @ Bitbucket</a>.</p>
 <div id="content">
 <p id="tz_info"></p>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.