bradfitz / latlong

The latlong package maps from a latitude and longitude to a timezone.
Apache License 2.0
384 stars 41 forks source link

Charlotte, NC coordinates return "Asia/Kashgar" instead of "America/New_York" #4

Closed umpc closed 8 years ago

umpc commented 8 years ago

Hello. When using 35.2269, 80.8433, which is in the eastern U.S., I'm getting "Asia/Kashgar."

bradfitz commented 8 years ago

What was the resolution?

umpc commented 8 years ago

It turned out to be my own silly mistake. At the time, I wasn't validating lat/long input yet, and mistakenly dropped the negative sign that's supposed to be in front of the longitude.

P.S. Thanks for this incredibly useful library!