diff options
author | Ben Burwell <ben@benburwell.com> | 2020-02-06 00:07:14 -0500 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2020-02-06 00:07:14 -0500 |
commit | 5dc6598f92f9b197f5b5e3fb99cb39e36ff039cd (patch) | |
tree | 6349886e6c501bdf5898ed8bd2931090b0fe17ee | |
parent | d0b64a399327399a2724ca34492eeb922394b0d5 (diff) |
fix int conversionsv0.1.1
-rw-r--r-- | metar/metar.go | 4 |
1 files 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)) } } |