From b94608f789ad89dcecd4e02328e79787d4342a94 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 4 May 2018 11:32:20 +0200 Subject: fix formatting of X-Delete-At header --- field_time.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'field_time.go') diff --git a/field_time.go b/field_time.go index d367f68..d6ec447 100644 --- a/field_time.go +++ b/field_time.go @@ -19,7 +19,6 @@ package schwift import ( - "fmt" "net/http" "strconv" "time" @@ -119,7 +118,7 @@ func (f FieldUnixTime) Get() time.Time { //Set writes a new value for this header into the corresponding headers //instance. func (f FieldUnixTime) Set(value time.Time) { - f.h.Set(f.k, fmt.Sprintf("%.9f", float64(value.UnixNano())/1e9)) + f.h.Set(f.k, strconv.FormatUint(uint64(value.UnixNano())/1e9, 10)) } //Del removes this key from the original headers instance, so that the key will -- cgit v1.2.3