GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Adding UTC time to timezone webservice  XML
Forum Index -> General
Author Message
nr1



Joined: 16/07/2010 12:56:46
Messages: 2
Offline

Hi,

can you add the UTC time in response for timezone query?

This would give us the possibility to check the current time against the utc time and therefore to get the current (local) timezone offset compared to utc.


Example:
http://ws.geonames.org/timezone?lat=40.7&lng=-74
saphir



Joined: 05/06/2010 22:44:39
Messages: 130
Offline

Hi,

Your system knows your SysTime and your SysOffset to UTC.
TimeZoneQuery returns the LocalTime.

LocalTime - SysTime + SysOffset gives you the LocalOffset to UTC... or the LocalTimeZone

Urs
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team