From 31e023df839b7be62dbcac05b578a6ff95874f48 Mon Sep 17 00:00:00 2001 From: Akram Ben Aissi Date: Tue, 17 Nov 2015 17:47:22 +0100 Subject: [PATCH] Use time.RFC3339 for parsing dates Use time.RFC3339 for parsing dates --- results.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/results.go b/results.go index 27fd1b60..45c7d664 100644 --- a/results.go +++ b/results.go @@ -4,6 +4,7 @@ import ( "encoding/json" "net/http" "reflect" + "time" "github.com/mitchellh/mapstructure" ) @@ -114,7 +115,7 @@ func DecodeHeader(from, to interface{}) error { const RFC3339Milli = "2006-01-02T15:04:05.999999Z" // Time format used in cloud orchestration -const STACK_TIME_FMT = "2006-01-02T15:04:05" +const STACK_TIME_FMT = time.RFC3339 /* Link is an internal type to be used in packages of collection resources that are