Comparing version 0.0.5 to 0.1.0
18
index.js
@@ -30,2 +30,20 @@ var tz = require('./tz') | ||
var datestroffset = /\((.*?)\)/.exec('' + new Date()) | ||
if(datestroffset) { | ||
datestroffset = datestroffset[1] | ||
for(var i = 0, len = list.length; i < len; ++i) { | ||
if(list[i].abbr === datestroffset) { | ||
return { | ||
'name': list[i].name | ||
, 'loc': list[i].loc | ||
, 'abbr': list[i].abbr | ||
, 'offset': fmt | ||
} | ||
} | ||
} | ||
} | ||
if(!is_north) | ||
@@ -32,0 +50,0 @@ list = list.reverse() |
{ | ||
"name": "tz", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"author": "Chris Dickinson <chris@neversaw.us>", | ||
@@ -5,0 +5,0 @@ "description": "sniff for timezone info using pure JS", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28990
1096