dbarbalato / magellan

JavaScript Latitude and Longitude Validation and Formatting
18 stars 12 forks source link

Fixed case#4 Longitude parsing and validation fails in specific cases #5

Closed aeinbu closed 8 years ago

aeinbu commented 8 years ago

Hi!

I came across the same bug that @markerikson reported. (Case#4)

Mark's fix would break the some of the Idempotency test rules for 59.9999 seconds, so i have instead added a few checks when setting the minutes and seconds.