0

I need to implement a feature that would help me get GMT Time using users IP Address. Is there any kind of Web Service that would take IP address and give me GMT time for that IP?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Ali Taha Ali Mahboub
  • 3,271
  • 6
  • 26
  • 25

2 Answers2

3

As pointed out in How to get Time Zone through IP Address ... it is very difficult to deduce the time zome from the IP address. If you want to get the time zone from the current client connection, you can let the client send his timezone to the server. A good approximation is also to get the client's current local time and to compute the difference to the GMT at the server. This could also be done at each connection to accout for the daylight saving.

Community
  • 1
  • 1
Jiri Kriz
  • 9,192
  • 3
  • 29
  • 36
1

You can check this: http://www.geobytes.com/iplocator.htm

it has an example on how to use from code and it has a timezone field in the results

Ido Weinstein
  • 1,176
  • 8
  • 24