runk/node-maxmind — pull request #20 by afzaalace (2014-07-12 06:23:45+00:00)
Title: Fix time zone method

Defaults to country's standard time zone if an invalid/ineffective region is set.

When IP is "123.63.163.228"
getLocation outputs
{ countryCode: 'IN',
countryName: 'India',
region: '07',
city: 'New Delhi',
postalCode: null,
latitude: 28.599999999999994,
longitude: 77.19999999999999,
dmaCode: 0,
areaCode: 0,
metroCode: 0,
distance: [Function],
regionName: 'Delhi' }

Although India follows a single timezone. And forwarding the region code to the timezone function returned undefined.