Timezones only appearing as 0 on regular API

  • Ads

Timezones only appearing as 0 on regular API

Postby Sword » Sun Apr 18, 2010 5:49 pm

Hi marc,

Think there may have been a bug with the newest API release. The three timezone fields (Timezone, Gmtoffset, Dstoffset) now only display as 0, no matter what the IP location is. Examples:
http://ipinfodb.com/ip_query.php?output=xml&ip=70.20.83.157
http://ipinfodb.com/ip_query.php?output=xml&ip=173.114.71.25
http://ipinfodb.com/ip_query.php?output=xml&ip=83.176.251.210
http://ipinfodb.com/ip_query2.php?ip=74.125.45.100,206.190.60.37

This bug seems to effect all IPs, not just certain ones. According to my logs, this error originated on April 10th at 7:30pm GMT.

If you could look into it that would be great, thanks. :)
Sword
 
Posts: 6
Joined: Thu Jul 09, 2009 3:51 pm

Re: Timezones only appearing as 0 on regular API

Postby marchost » Sun Apr 18, 2010 6:42 pm

Hi, there is a new timezone parameters :

http://ipinfodb.com/ip_location_api.php

The previous timezones where not precise enought, I removed it in the march release for the database and in april for the API.

Marc
marchost
Site Admin
 
Posts: 373
Joined: Wed Apr 08, 2009 9:55 pm

Re: Timezones only appearing as 0 on regular API

Postby Sword » Sun Apr 18, 2010 11:32 pm

Ah ok, makes sense - thanks!

(Perhaps just as a suggestion, you may want to make not including the "&timezone" parameter in the API URL, like my example links above, default to "&timezone=false", just so no one can access API pages with seemingly missing timezone information.)
Sword
 
Posts: 6
Joined: Thu Jul 09, 2009 3:51 pm

Re: Timezones only appearing as 0 on regular API

Postby marchost » Mon Apr 19, 2010 9:26 am

The thing is that I wanted to keep it backward compatible with the old output (no timezone param). Just in case some people code would show an error if new fields appeared and some removed...

I put the parameter because it requires 2 additionnal queries on my side, I want to make sure that people who use it really need it.

Marc
marchost
Site Admin
 
Posts: 373
Joined: Wed Apr 08, 2009 9:55 pm


Return to IP geolocation API related



Who is online

Users browsing this forum: bhukkel, Google Adsense [Bot], Yahoo [Bot] and 1 guest