From 5dc6598f92f9b197f5b5e3fb99cb39e36ff039cd Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Thu, 6 Feb 2020 00:07:14 -0500 Subject: fix int conversions --- metar/metar.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metar/metar.go b/metar/metar.go index 8af5d52..3d303c5 100644 --- a/metar/metar.go +++ b/metar/metar.go @@ -231,8 +231,8 @@ func StationString(s string) func(*Request) { // TimeRange requests METARs observed between the from and to times. func TimeRange(from, to time.Time) func(*Request) { return func(r *Request) { - r.v.Add("startTime", string(from.Unix())) - r.v.Add("endTime", string(to.Unix())) + r.v.Add("startTime", strconv.FormatInt(from.Unix(), 10)) + r.v.Add("endTime", strconv.FormatInt(to.Unix(), 10)) } } -- cgit v1.2.3