summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metar/metar.go4
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))
}
}