From 0958427c83e80c32cbea983fd678a2ea243955da Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 3 Nov 2016 23:29:12 -0700 Subject: testing fix for str format of time and dates marshalling --- system/api/analytics/init.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'system/api/analytics/init.go') diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index 2368b2b..1e0d3ba 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -4,6 +4,7 @@ package analytics import ( + "fmt" "log" "net/http" "strings" @@ -162,7 +163,7 @@ CHECK_REQUEST: for j := range times { // format times[j] (time.Time) into a MM/DD format for dates - dates[j] = times[j].Format(`01/02`) + dates[j] = times[j].Format("01/02") // if on today, there will be no next iteration to set values for // day prior so all valid requests belong to today @@ -222,6 +223,8 @@ CHECK_REQUEST: return nil, err } + fmt.Println(dates) + return map[string]string{ "dates": string(jsDates), "unique": string(jsUnique), -- cgit v1.2.3