From befb623e1183f095478b3783d279d6bd8dcab467 Mon Sep 17 00:00:00 2001 From: Florimond Husquinet Date: Mon, 27 May 2019 18:22:49 +0200 Subject: [PATCH] Fix WithUntil --- v2/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/options.go b/v2/options.go index db80863..6479d16 100644 --- a/v2/options.go +++ b/v2/options.go @@ -166,5 +166,5 @@ func WithFrom(from time.Time) Option { // WithUntil request messages until a point in time. func WithUntil(until time.Time) Option { - return option("from=" + strconv.FormatInt(getUTCTimestamp(until), 10)) + return option("until=" + strconv.FormatInt(getUTCTimestamp(until), 10)) }