Jon Nylander avatar Jon Nylander committed dfd3db7

Added a few more ambiguities thanks to Timo :)

Comments (0)

Files changed (1)

detect_timezone.js

 	'420,0'    : new TimeZone('+07:00','Asia/Jakarta', false),
 	'480,0'    : new TimeZone('+08:00','Asia/Shanghai', false),
 	'480,1'    : new TimeZone('+08:00','Asia/Irkutsk', true),
+	'525,0'    : new TimeZone('+08:45','Australia/Eucla', true),
 	'525,1,s'  : new TimeZone('+08:45','Australia/Eucla', true),
 	'540,1'    : new TimeZone('+09:00','Asia/Yakutsk', true),
 	'540,0'    : new TimeZone('+09:00','Asia/Tokyo', false),
 	'Asia/Yerevan' : new Date(2011, 2, 27, 8, 0, 0, 0),
 	'Asia/Baku'    : new Date(2011, 2, 27, 10, 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)
+	'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, 4, 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)
 }
 
 /**
 	'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/New_York' : ['America/Havana','America/New_York'],
+	'America/Halifax' : ['America/Goose_Bay','America/Halifax'],
+	'America/Godthab' : ['America/Miquelon', 'America/Godthab']
 }
 
 /**
  */
 function get_date_offset(date) {
 	var gmt_version = date.toGMTString();
-
 	gmt_version = gmt_version.substring(0, gmt_version.lastIndexOf(" ")); 
-
+	
 	var date2 = new Date(gmt_version);
-
 	return -date2.getTimezoneOffset();
 }
 
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.